[cfe-commits] r116141 - /cfe/trunk/test/CodeGenCXX/const-init.cpp

John McCall rjmccall at apple.com
Fri Oct 8 19:28:39 PDT 2010


Author: rjmccall
Date: Fri Oct  8 21:28:39 2010
New Revision: 116141

URL: http://llvm.org/viewvc/llvm-project?rev=116141&view=rev
Log:
Secure this test against slightly different number formatters.


Modified:
    cfe/trunk/test/CodeGenCXX/const-init.cpp

Modified: cfe/trunk/test/CodeGenCXX/const-init.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/const-init.cpp?rev=116141&r1=116140&r2=116141&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/const-init.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/const-init.cpp Fri Oct  8 21:28:39 2010
@@ -31,8 +31,8 @@
     static const float f = d / 2;
   };
 
-  // CHECK: @_ZN5test22t0E = global double 1.000000e+00, align 8
-  // CHECK: @_ZN5test22t1E = global [2 x double] [double 1.000000e+00, double 5.000000e-01], align 16
+  // CHECK: @_ZN5test22t0E = global double {{1\.0+e\+0+}}, align 8
+  // CHECK: @_ZN5test22t1E = global [2 x double] [double {{1\.0+e\+0+}}, double {{5\.0+e-0*}}1], align 16
   double t0 = A::d;
   double t1[] = { A::d, A::f };
 }





More information about the cfe-commits mailing list