summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/sh2a-resbank.c
blob: aab6852f336431fa69a17d0bc3bb6a428bff48c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test for resbank attribute.  */
/* { dg-do assemble {target sh*-*-*}} */
/* { dg-skip-if "" { "sh*-*-*" } "*" "-m2a -m2a-nofpu -m2a-single -m2a-single-only" } */
/* { dg-final { scan-assembler "resbank" } } */
 
extern void bar(void);
 
void foo(void) __attribute__((interrupt_handler, resbank));
void foo(void)
{
  bar();
}