diff options
Diffstat (limited to 'clang/test/Sema/arm64-inline-asm.c')
-rw-r--r-- | clang/test/Sema/arm64-inline-asm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Sema/arm64-inline-asm.c b/clang/test/Sema/arm64-inline-asm.c new file mode 100644 index 00000000000..2d936214be6 --- /dev/null +++ b/clang/test/Sema/arm64-inline-asm.c @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -triple arm64-apple-ios7.1 -fsyntax-only -verify %s +void foo() { + asm volatile("USE(%0)" :: "z"(0LL)); + asm volatile("USE(%x0)" :: "z"(0LL)); + asm volatile("USE(%w0)" :: "z"(0)); + + asm volatile("USE(%0)" :: "z"(0)); // expected-warning {{value size does not match register size specified by the constraint and modifier}} +} |