Debian Codegraph @

gcc/testsuite/gcc.target/i386/interrupt-7.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mgeneral-regs-only -mno-cld" } */
3
4 extern int error;
5
6 extern void fn (void *) __attribute__((interrupt));
7
8 void
9 foo (void)
10 {
11 fn (&error); /* { dg-error "interrupt service routine cannot be called directly" } */
12 }