aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/msp430/interrupt_fn_placement.c
blob: b8fd5e649808778a7baf18ee839748ec47d788f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-skip-if "" { "*-*-*" } { "-mcpu=msp430" } { "" } } */
/* { dg-options "-mlarge -mcode-region=either -ffunction-sections" } */
/* { dg-final { scan-assembler-not "\\.either\\.lowtext" } } */

void __attribute__ ((interrupt (2))) ir_1 (void)
{
  while (1);
}

int main (void)
{
  while (1);
}