OSDN Git Service

gcc/testsuite/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / mips / mips16-attributes-2.c
1 /* { dg-skip-if "" { *-*-* } { "-mflip-mips16" } { "" } } */
2 /* { dg-options "(-mips16)" } */
3
4 void f1 (void);
5 void __attribute__((mips16)) f1 (void) {} /* { dg-error "conflicting" } */
6
7 void __attribute__((mips16)) f2 (void);
8 void f2 (void) {} /* { dg-error "conflicting" } */
9
10 void f3 (void);
11 void __attribute__((nomips16)) f3 (void) {} /* { dg-error "conflicting" } */
12
13 void __attribute__((nomips16)) f4 (void);
14 void f4 (void) {} /* { dg-error "conflicting" } */
15
16 void __attribute__((mips16, nomips16)) f5 (void) {} /* { dg-error "cannot have both" } */