2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / mips / mips16-attributes-2.c
blobbc81cfa7e03727602c908f55d8bbab57817befbd
1 /* { dg-skip-if "" { *-*-* } { "-mflip-mips16" } { "" } } */
2 /* { dg-options "(-mips16)" } */
4 void f1 (void);
5 void __attribute__((mips16)) f1 (void) {} /* { dg-error "conflicting" } */
7 void __attribute__((mips16)) f2 (void);
8 void f2 (void) {} /* { dg-error "conflicting" } */
10 void f3 (void);
11 void __attribute__((nomips16)) f3 (void) {} /* { dg-error "conflicting" } */
13 void __attribute__((nomips16)) f4 (void);
14 void f4 (void) {} /* { dg-error "conflicting" } */
16 void __attribute__((mips16, nomips16)) f5 (void) {} /* { dg-error "cannot have both" } */