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
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c
index 4ef97bd..26aa3bd 100644
--- a/test/CodeGen/asm.c
+++ b/test/CodeGen/asm.c
@@ -22,7 +22,8 @@
 	__asm__ volatile ("":: "m"(a), "m"(b));
 }
 
-
-
-
-
+// PR3417
+void t5(int i)
+{
+  asm("nop" : "=r"(i) : "0"(t5));
+}