[cfe-commits] r54036 - /cfe/trunk/test/Lexer/rdr-6096838.c

Daniel Dunbar daniel at zuster.org
Fri Jul 25 11:41:57 PDT 2008


Author: ddunbar
Date: Fri Jul 25 13:41:57 2008
New Revision: 54036

URL: http://llvm.org/viewvc/llvm-project?rev=54036&view=rev
Log:
Add test case for hex floating point constants in < C99 mode
 - For: rdar://6096838

Added:
    cfe/trunk/test/Lexer/rdr-6096838.c

Added: cfe/trunk/test/Lexer/rdr-6096838.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/rdr-6096838.c?rev=54036&view=auto

==============================================================================
--- cfe/trunk/test/Lexer/rdr-6096838.c (added)
+++ cfe/trunk/test/Lexer/rdr-6096838.c Fri Jul 25 13:41:57 2008
@@ -0,0 +1,14 @@
+/* RUN: clang -fsyntax-only -verify %s &&
+ * RUN: clang -std=gnu89 -fsyntax-only -verify %s &&
+ * RUN: clang -DPEDANTIC -pedantic -std=gnu89 -fsyntax-only -verify %s
+ */
+
+#ifdef PEDANTIC
+
+long double d = 0x0.0000003ffffffff00000p-16357L; /* expected-warning {{ hexadecimal floating constants are a C99 feature }} */
+
+#else
+
+long double d = 0x0.0000003ffffffff00000p-16357L;
+
+#endif





More information about the cfe-commits mailing list