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