summaryrefslogtreecommitdiffstats
path: root/test/Lexer/11-27-2007-FloatLiterals.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/11-27-2007-FloatLiterals.c')
-rw-r--r--test/Lexer/11-27-2007-FloatLiterals.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Lexer/11-27-2007-FloatLiterals.c b/test/Lexer/11-27-2007-FloatLiterals.c
new file mode 100644
index 0000000..f3ea7cb
--- /dev/null
+++ b/test/Lexer/11-27-2007-FloatLiterals.c
@@ -0,0 +1,7 @@
+// RUN: clang-cc %s -emit-llvm -o - | grep 0x3BFD83C940000000 | count 2 &&
+// RUN: clang-cc %s -emit-llvm -o - | grep 2.000000e+32 | count 2
+
+float F = 1e-19f;
+double D = 2e32;
+float F2 = 01e-19f;
+double D2 = 02e32;
OpenPOWER on IntegriCloud