diff options
author | Anders Carlsson <andersca@mac.com> | 2009-01-27 20:38:24 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-01-27 20:38:24 +0000 |
commit | 03eb543cf7ebee463b33b5802b83ac92c21770cf (patch) | |
tree | bd511c9b73b843b5170087e7c9aa9e890457bd98 /test/CodeGen/asm.c | |
parent | 98abf4bd3526a00a0e5cf71a9462c181f97b1c81 (diff) |
If an input constraint refers to an output constraint, it should have the same constraint info as the output constraint. Fixes PR3417
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/asm.c')
-rw-r--r-- | test/CodeGen/asm.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c index 4ef97bde2a..26aa3bd61b 100644 --- a/test/CodeGen/asm.c +++ b/test/CodeGen/asm.c @@ -22,7 +22,8 @@ void t4() __asm__ volatile ("":: "m"(a), "m"(b)); } - - - - +// PR3417 +void t5(int i) +{ + asm("nop" : "=r"(i) : "0"(t5)); +} |