r209726 - Let clang/test/CodeGen/pr19841.cpp tolerant of MS mangler.

NAKAMURA Takumi geek4civic at gmail.com
Wed May 28 03:53:07 PDT 2014


Author: chapuni
Date: Wed May 28 05:53:06 2014
New Revision: 209726

URL: http://llvm.org/viewvc/llvm-project?rev=209726&view=rev
Log:
Let clang/test/CodeGen/pr19841.cpp tolerant of MS mangler.

Modified:
    cfe/trunk/test/CodeGen/pr19841.cpp

Modified: cfe/trunk/test/CodeGen/pr19841.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/pr19841.cpp?rev=209726&r1=209725&r2=209726&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/pr19841.cpp (original)
+++ cfe/trunk/test/CodeGen/pr19841.cpp Wed May 28 05:53:06 2014
@@ -12,6 +12,7 @@ class A {
   unsigned char _highlightColorTableVGA[];
   static const unsigned char b[];
 };
+// CHECK: [[Common_A_b:@[^ ]+]] = constant [1 x i8] zeroinitializer
 class B {
 public:
   Common::RenderMode _configRenderMode;
@@ -22,7 +23,7 @@ A::A() {
       ? b
       : _highlightColorTableVGA;
 // Make sure the PHI value is casted correctly to the PHI type
-// CHECK: %{{.*}} = phi [0 x i8]* [ bitcast ([1 x i8]* @_ZN6Common1A1bE to [0 x i8]*), %{{.*}} ], [ %{{.*}}, %{{.*}} ]
+// CHECK: %{{.*}} = phi [0 x i8]* [ bitcast ([1 x i8]* [[Common_A_b]] to [0 x i8]*), %{{.*}} ], [ %{{.*}}, %{{.*}} ]
 }
 const unsigned char A::b[] = { 0 };
 }





More information about the cfe-commits mailing list