diff options
| author | Mike Stump <mrs@apple.com> | 2009-10-08 21:57:41 +0000 |
|---|---|---|
| committer | Mike Stump <mrs@apple.com> | 2009-10-08 21:57:41 +0000 |
| commit | 03686660b16db7866ecad600806e205075b670c3 (patch) | |
| tree | cb42813fc67eb6e66ad5310731f3cf3a3d586383 /clang/test/CodeGen/const-init.c | |
| parent | 936354c62aafa6aa5c79ba5c5c0536a6b4552aa8 (diff) | |
| download | bcm5719-llvm-03686660b16db7866ecad600806e205075b670c3.tar.gz bcm5719-llvm-03686660b16db7866ecad600806e205075b670c3.zip | |
In VC++, the *printf functions put an extra "0" in the exponent part
of a floating point number. This add regular expressions to account
for this. Patch by John Thompson.
llvm-svn: 83581
Diffstat (limited to 'clang/test/CodeGen/const-init.c')
| -rw-r--r-- | clang/test/CodeGen/const-init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CodeGen/const-init.c b/clang/test/CodeGen/const-init.c index b5ba3221292..29e9c556152 100644 --- a/clang/test/CodeGen/const-init.c +++ b/clang/test/CodeGen/const-init.c @@ -22,21 +22,21 @@ union s2 { int g0 = (int)(&(((union s2 *) 0)->f0.f0) - 0); -// CHECK: @g1x = global {{%.}} { double 1.000000e+00, double 0.000000e+00 } +// CHECK: @g1x = global {{%.}} { double 1.000000e+00{{[0]*}}, double 0.000000e+00{{[0]*}} } _Complex double g1x = 1.0f; -// CHECK: @g1y = global {{%.}} { double 0.000000e+00, double 1.000000e+00 } +// CHECK: @g1y = global {{%.}} { double 0.000000e+00{{[0]*}}, double 1.000000e+00{{[0]*}} } _Complex double g1y = 1.0fi; // CHECK: @g1 = global {{%.}} { i8 1, i8 10 } _Complex char g1 = (char) 1 + (char) 10 * 1i; // CHECK: @g2 = global %2 { i32 1, i32 10 } _Complex int g2 = 1 + 10i; -// CHECK: @g3 = global {{%.}} { float 1.000000e+00, float 1.000000e+01 } +// CHECK: @g3 = global {{%.}} { float 1.000000e+00{{[0]*}}, float 1.000000e+0{{[0]*}}1 } _Complex float g3 = 1.0 + 10.0i; -// CHECK: @g4 = global {{%.}} { double 1.000000e+00, double 1.000000e+01 } +// CHECK: @g4 = global {{%.}} { double 1.000000e+00{{[0]*}}, double 1.000000e+0{{[0]*}}1 } _Complex double g4 = 1.0 + 10.0i; // CHECK: @g5 = global %2 zeroinitializer _Complex int g5 = (2 + 3i) == (5 + 7i); -// CHECK: @g6 = global {{%.}} { double -1.100000e+01, double 2.900000e+01 } +// CHECK: @g6 = global {{%.}} { double -1.100000e+0{{[0]*}}1, double 2.900000e+0{{[0]*}}1 } _Complex double g6 = (2.0 + 3.0i) * (5.0 + 7.0i); // CHECK: @g7 = global i32 1 int g7 = (2 + 3i) * (5 + 7i) == (-11 + 29i); |

