xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/arm-asm.c (revision bdb565187c0f1a04513dd488df843317b27f86c8)
1 // RUN: %clang_cc1 %s -triple armv7-apple-darwin -verify -fsyntax-only
2 
3 void f (void) {
4   int Val;
5   asm volatile ("lw (r1), %0[val]": "=&b"(Val)); // expected-error {{invalid output constraint '=&b' in asm}}
6   return;
7 }
8 
9 void test_64bit_r(void) {
10   long long foo = 0, bar = 0;
11   asm volatile("INST %0, %1" : "=r"(foo) : "r"(bar));
12 }
13