summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/epiphany/isr-arg.c
blob: 5a8acc63518229755472f07d19a9e1f2b42cc256 (plain)
1
2
3
4
5
6
7
8
9
int *p;

void __attribute__((interrupt))
isr (int signum) /* { dg-error "interrupt handlers cannot have arguments"  } */
{
  *p = 1;
  return;
}