commit | 14125b0929b70775c0a41dc22cbabe127f3f8e8e | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Sun Feb 22 02:11:23 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Sun Feb 22 02:11:23 2009 +0000 |
tree | 7d05f7df6bb14395cee2d7588ddff810b0831683 | |
parent | 858c64de654cb0c6bb3610b9938d0d4d714ed05d [diff] [blame] |
Match gcc and always perform array/function conversion for asm input exprs. Fixes PR3641. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65256 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c index 26aa3bd..e8088d4 100644 --- a/test/CodeGen/asm.c +++ b/test/CodeGen/asm.c
@@ -27,3 +27,9 @@ { asm("nop" : "=r"(i) : "0"(t5)); } + +// PR3641 +void t6(void) +{ + __asm__ volatile("" : : "i" (t6)); +}