From: John McCall Date: Sat, 9 Oct 2010 02:28:39 +0000 (+0000) Subject: Secure this test against slightly different number formatters. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90fb58e9f5482d2be61c4acfedf4fa69585c8ac1;p=clang Secure this test against slightly different number formatters. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116141 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/const-init.cpp b/test/CodeGenCXX/const-init.cpp index d206b64951..a8c6f30498 100644 --- a/test/CodeGenCXX/const-init.cpp +++ b/test/CodeGenCXX/const-init.cpp @@ -31,8 +31,8 @@ namespace test2 { 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 }; }