* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-return-1.c
blobd22891589dd34f649ff975a257900492fd8d1991
1 /* PR middle-end/11151 */
2 /* Originator: Andrew Church <gcczilla@achurch.org> */
3 /* { dg-do run } */
5 /* This used to fail on SPARC because the (undefined) return
6 value of 'bar' was overwriting that of 'foo'. */
8 extern void abort(void);
10 int foo(int n)
12 return n+1;
15 int bar(int n)
17 __builtin_return(__builtin_apply((void (*)(void))foo, __builtin_apply_args(), 64));
20 int main(void)
22 if (bar(1) != 2)
23 abort();
25 return 0;