1 // RUN: %clang_cc1 -triple armv8.1m.main-arm-none-eabi -verify -fsyntax-only %s
3 static __inline__
__attribute__((__clang_arm_builtin_alias(__builtin_arm_nop
))) // expected-error {{'__clang_arm_builtin_alias' attribute can only be applied to an ARM builtin}}
7 static __inline__
__attribute__((__clang_arm_builtin_alias
)) // expected-error {{'__clang_arm_builtin_alias' attribute takes one argument}}
11 static __inline__
__attribute__((__clang_arm_builtin_alias())) // expected-error {{'__clang_arm_builtin_alias' attribute takes one argument}}
15 static __inline__
__attribute__((__clang_arm_builtin_alias("string literal"))) // expected-error {{'__clang_arm_builtin_alias' attribute requires parameter 1 to be an identifier}}
19 static __inline__
__attribute__((__clang_arm_builtin_alias(1))) // expected-error {{'__clang_arm_builtin_alias' attribute requires parameter 1 to be an identifier}}
23 static __inline__
__attribute__((__clang_arm_builtin_alias(__builtin_arm_nop
, 2))) // expected-error {{'__clang_arm_builtin_alias' attribute takes one argument}}
27 static __attribute__((__clang_arm_builtin_alias(__builtin_arm_nop
))) // expected-error {{'__clang_arm_builtin_alias' attribute only applies to functions}}