diff options
-rw-r--r-- | clang/test/CodeGen/ms-inline-asm-var-name.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm-var-name.c b/clang/test/CodeGen/ms-inline-asm-var-name.c new file mode 100644 index 00000000000..084e90500a2 --- /dev/null +++ b/clang/test/CodeGen/ms-inline-asm-var-name.c @@ -0,0 +1,12 @@ +// REQUIRES: x86-registered-target +// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s + +void t() { + int eax; + int Ecx; + __asm mov eax, ebx + // CHECK: mov $0, ebx + __asm add ecx, Ecx + // CHECK: add ecx, $1 +} + |