[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGen / arm-asm-deprecated.c
blob1d7399a58c5502c4b102a30fb7e3226c4b1eb06c
1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 -triple armv8 -target-feature +neon %s -S -o /dev/null -verify -DWARN
3 // RUN: %clang_cc1 -triple armv8 -target-feature +neon %s -S -o /dev/null -Werror -verify
5 void set_endian() {
6 asm("setend be");
7 // expected-note@1 {{instantiated into assembly here}}
8 #ifdef WARN
9 // expected-warning@-3 {{deprecated}}
10 #else
11 // expected-error@-5 {{deprecated}}
12 #endif