diff options
Diffstat (limited to 'test/Sema/arm-asm.c')
-rw-r--r-- | test/Sema/arm-asm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Sema/arm-asm.c b/test/Sema/arm-asm.c new file mode 100644 index 000000000000..3fc0eeb7543a --- /dev/null +++ b/test/Sema/arm-asm.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 %s -triple armv7-apple-darwin -verify -fsyntax-only + +void f (void) { + int Val; + asm volatile ("lw (r1), %0[val]": "=&b"(Val)); // expected-error {{invalid output constraint '=&b' in asm}} + return; +} |