2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / avr / torture / pr77326.c
blob7fe11ec390a7d2a41299a2efcda419787e94c0a0
1 /* { dg-do run } */
2 /* { dg-options "-Wl,--defsym,test1=0" } */
4 extern void test1 (void) __attribute__((weak));
6 __attribute__((noinline,noclone))
7 static void va_pseudo (int flag, ...)
9 __asm ("nop":);
12 __attribute__((noinline,noclone))
13 static void func (void)
15 va_pseudo (0, 0, 0, 0);
17 if (test1)
18 __builtin_abort ();
21 int main (void)
23 func();
24 __builtin_exit (0);
25 return 0;