1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple mipsel-linux-gnu -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc void foo32(); 4*f4a2713aSLionel Sambuc void foo16(); 5*f4a2713aSLionel Sambuc void __attribute__((nomips16)) foo32(); 6*f4a2713aSLionel Sambuc void __attribute__((mips16)) foo16(); 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc void __attribute__((nomips16)) foo32_(); 9*f4a2713aSLionel Sambuc void __attribute__((mips16)) foo16_(); 10*f4a2713aSLionel Sambuc void foo32_(); 11*f4a2713aSLionel Sambuc void foo16_(); 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc void foo32__() __attribute__((nomips16)); 14*f4a2713aSLionel Sambuc void foo32__() __attribute__((mips16)); 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc void foo32a() __attribute__((nomips16(0))) ; // expected-error {{'nomips16' attribute takes no arguments}} 17*f4a2713aSLionel Sambuc void __attribute__((mips16(1))) foo16a(); // expected-error {{'mips16' attribute takes no arguments}} 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc void __attribute__((nomips16(1, 2))) foo32b(); // expected-error {{'nomips16' attribute takes no arguments}} 20*f4a2713aSLionel Sambuc void __attribute__((mips16(1, 2))) foo16b(); // expected-error {{'mips16' attribute takes no arguments}} 21*f4a2713aSLionel Sambuc 22*f4a2713aSLionel Sambuc 23*f4a2713aSLionel Sambuc __attribute((nomips16)) int a; // expected-error {{attribute only applies to functions}} 24*f4a2713aSLionel Sambuc 25*f4a2713aSLionel Sambuc __attribute((mips16)) int b; // expected-error {{attribute only applies to functions}} 26*f4a2713aSLionel Sambuc 27*f4a2713aSLionel Sambuc 28