diff options
Diffstat (limited to 'validation/linear/bool-cast-lp64.c')
| -rw-r--r-- | validation/linear/bool-cast-lp64.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/linear/bool-cast-lp64.c b/validation/linear/bool-cast-lp64.c new file mode 100644 index 00000000..9b2a020a --- /dev/null +++ b/validation/linear/bool-cast-lp64.c @@ -0,0 +1,18 @@ +extern int ffun(void); +typedef void *vdp; +typedef int *sip; + +static _Bool fvdp_i(vdp a) { return a; } +static _Bool fvdp_e(vdp a) { return (_Bool)a; } +static _Bool fsip_i(sip a) { return a; } +static _Bool fsip_e(sip a) { return (_Bool)a; } +static _Bool ffun_i(void) { return ffun; } +static _Bool ffun_e(void) { return (_Bool)ffun; } + +/* + * check-name: bool-cast-pointer + * check-command: test-linearize -m64 -fdump-ir $file + * + * check-output-ignore + * check-output-excludes: ptrtu\\. + */ |
