diff options
Diffstat (limited to 'clang/test/CodeGen/inline-asm-mixed-style.c')
-rw-r--r-- | clang/test/CodeGen/inline-asm-mixed-style.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CodeGen/inline-asm-mixed-style.c b/clang/test/CodeGen/inline-asm-mixed-style.c index a9e111cd5dd..6b830d9fa7a 100644 --- a/clang/test/CodeGen/inline-asm-mixed-style.c +++ b/clang/test/CodeGen/inline-asm-mixed-style.c @@ -1,3 +1,4 @@ +// RUN: %clang_cc1 -triple i386-unknown-unknown -fasm-blocks -fsyntax-only -verify %s -DCHECK_ASM_GOTO // RUN: %clang_cc1 -triple i386-unknown-unknown -fasm-blocks -O0 -emit-llvm -S %s -o - | FileCheck %s // REQUIRES: x86-registered-target @@ -19,11 +20,10 @@ void f() { // CHECK: movl %ebx, %eax // CHECK: movl %ecx, %edx - __asm volatile goto ("movl %ecx, %edx"); - // CHECK: movl %ecx, %edx +#ifdef CHECK_ASM_GOTO + __asm volatile goto ("movl %ecx, %edx"); // expected-error {{'asm goto' constructs are not supported yet}} __asm mov eax, ebx - __asm goto ("movl %ecx, %edx"); - // CHECK: movl %ebx, %eax - // CHECK: movl %ecx, %edx + __asm goto ("movl %ecx, %edx"); // expected-error {{'asm goto' constructs are not supported yet}} +#endif } |