Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / mpx / chkp-fix-calls-3.c
blob439f631a3b932d70618cc67f4a1752e9f4b27878
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fexceptions -fcheck-pointer-bounds -mmpx" } */
4 extern int f2 (const char*, int, ...);
5 extern long int f3 (int *);
6 extern void err (void) __attribute__((__error__("error")));
8 extern __inline __attribute__ ((__always_inline__)) int
9 f1 (int i, ...)
11 if (__builtin_constant_p (i))
13 if (i)
14 err ();
15 return f2 ("", i);
18 return f2 ("", i);
21 int
22 test ()
24 int i;
26 if (f1 (0))
27 if (f3 (&i))
28 i = 0;
30 return i;