diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-02-26 19:19:58 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-02-26 19:19:58 +0000 |
commit | 7695f70bbd3e4d42adaa1ef2ff5e1b9ab3d9c345 (patch) | |
tree | 3b3653094b3941dd44054207a4261602c6307a55 /test/CodeGen/2008-02-26-inline-asm-bug.c | |
parent | 189c3056d98858b43b3f2b38fd5168c5a18a4899 (diff) |
Fix a bug in ConvertAsmString function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/2008-02-26-inline-asm-bug.c')
-rw-r--r-- | test/CodeGen/2008-02-26-inline-asm-bug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/2008-02-26-inline-asm-bug.c b/test/CodeGen/2008-02-26-inline-asm-bug.c new file mode 100644 index 0000000000..668b06c0d1 --- /dev/null +++ b/test/CodeGen/2008-02-26-inline-asm-bug.c @@ -0,0 +1,6 @@ +// RUN: clang -emit-llvm < %s | grep "\$0,\$1" + +void f() { + int d1, d2; + asm("%0,%1": "=r" (d1) : "r" (d2)); +} |