2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / interrupt-7.c
blob506f61afa853c6a2c527d27c3163f8626fcad3d7
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mgeneral-regs-only -mno-cld" } */
4 extern int error;
6 extern void fn (void *) __attribute__((interrupt));
8 void
9 foo (void)
11 fn (&error); /* { dg-error "interrupt service routine can't be called directly" } */