summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/interrupt-387-err-1.c
blob: 3fbdc881dda5bbd71d536de953c8a7b484ef8869 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O2 -mgeneral-regs-only -mno-cld -mno-iamcu -m80387" } */

typedef unsigned int uword_t __attribute__ ((mode (__word__)));

void
__attribute__((interrupt))
fn1 (void *frame, uword_t error)
{ /* { dg-message "80387 instructions aren't allowed in exception service routine" } */
}

void
__attribute__((interrupt))
fn2 (void *frame)
{ /* { dg-message "80387 instructions aren't allowed in interrupt service routine" } */
}