[cfe-commits] r59770 - in /cfe/trunk/test/Lexer: rdr-6096838-2.c rdr-6096838.c

Chris Lattner sabre at nondot.org
Thu Nov 20 17:04:13 PST 2008


Author: lattner
Date: Thu Nov 20 19:04:13 2008
New Revision: 59770

URL: http://llvm.org/viewvc/llvm-project?rev=59770&view=rev
Log:
split into two tests.

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

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

==============================================================================
--- cfe/trunk/test/Lexer/rdr-6096838-2.c (added)
+++ cfe/trunk/test/Lexer/rdr-6096838-2.c Thu Nov 20 19:04:13 2008
@@ -0,0 +1,5 @@
+/* RUN: clang -pedantic -std=gnu89 -fsyntax-only -verify %s
+ rdar://6096838
+ */
+
+long double d = 0x0.0000003ffffffff00000p-16357L; /* expected-warning {{ hexadecimal floating constants are a C99 feature }} */

Modified: cfe/trunk/test/Lexer/rdr-6096838.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/rdr-6096838.c?rev=59770&r1=59769&r2=59770&view=diff

==============================================================================
--- cfe/trunk/test/Lexer/rdr-6096838.c (original)
+++ cfe/trunk/test/Lexer/rdr-6096838.c Thu Nov 20 19:04:13 2008
@@ -1,14 +1,6 @@
 /* RUN: clang -fsyntax-only -verify %s &&
- * RUN: clang -std=gnu89 -fsyntax-only -verify %s &&
- * RUN: clang -DPEDANTIC -pedantic -std=gnu89 -fsyntax-only -verify %s
+ * RUN: clang -std=gnu89 -fsyntax-only -verify %s
+ rdar://6096838
  */
 
-#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