11 lines
304 B
C
11 lines
304 B
C
/* Verify proper errors are generated for conflicted interrupt type. */
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-O" } */
|
|
void __attribute__ ((interrupt ("user")))
|
|
foo(void);
|
|
|
|
void __attribute__ ((interrupt ("machine")))
|
|
foo (void)
|
|
{ /* { dg-error "function cannot have different interrupt type" } */
|
|
}
|