r185543 - Test case for PR7887 - failed with asm("")

Serge Pavlov sepavloff at gmail.com
Wed Jul 3 08:32:48 PDT 2013


Author: sepavloff
Date: Wed Jul  3 10:32:48 2013
New Revision: 185543

URL: http://llvm.org/viewvc/llvm-project?rev=185543&view=rev
Log:
Test case for PR7887 - failed with asm("")

Modified:
    cfe/trunk/test/CodeGen/asm-label.c

Modified: cfe/trunk/test/CodeGen/asm-label.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/asm-label.c?rev=185543&r1=185542&r2=185543&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/asm-label.c (original)
+++ cfe/trunk/test/CodeGen/asm-label.c Wed Jul  3 10:32:48 2013
@@ -17,3 +17,15 @@ int *test(void) {
 // DARWIN: @"\01bar" = internal global i32 0
 // DARWIN: @"\01foo" = common global i32 0
 // DARWIN: declare i8* @"\01alias"(i32)
+
+// PR7887
+int pr7887_1 asm("");
+extern int pr7887_2 asm("");
+int pr7887_3 () asm("");
+
+int pt7887_4 () {
+  static int y asm("");
+  y = pr7887_3();
+  pr7887_2 = 1;
+  return pr7887_1;
+}





More information about the cfe-commits mailing list