aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-28 18:43:12 +0000
committerChris Lattner <sabre@nondot.org>2009-04-28 18:43:12 +0000
commit2dec3a1aa161fdd4a8dd650eee522c020490732f (patch)
treef747bb0783787892b825bf4da8d6817ff43e13b9
parent9895d88c34cb2eab65c622cddeaf721108d1af38 (diff)
merge number.c into constants.c and start running it in -verify mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70310 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Lexer/constants.c15
-rw-r--r--test/Lexer/number.c9
2 files changed, 11 insertions, 13 deletions
diff --git a/test/Lexer/constants.c b/test/Lexer/constants.c
index 014a8f1235..c046581633 100644
--- a/test/Lexer/constants.c
+++ b/test/Lexer/constants.c
@@ -1,8 +1,15 @@
-/* RUN: clang-cc -fsyntax-only -verify %s
- */
+// RUN: clang-cc -fsyntax-only -verify %s
-int x = 000000080; /* expected-error {{invalid digit}} */
+int x = 000000080; // expected-error {{invalid digit}}
int y = 0000\
-00080; /* expected-error {{invalid digit}} */
+00080; // expected-error {{invalid digit}}
+
+
+float X = 1.17549435e-38F;
+float Y = 08.123456;
+
+// PR2252
+#if -0x8000000000000000 // should not warn.
+#endif
diff --git a/test/Lexer/number.c b/test/Lexer/number.c
deleted file mode 100644
index 253453c764..0000000000
--- a/test/Lexer/number.c
+++ /dev/null
@@ -1,9 +0,0 @@
-// RUN: clang-cc %s -fsyntax-only
-
-float X = 1.17549435e-38F;
-float Y = 08.123456;
-
-// PR2252
-#if -0x8000000000000000 // should not warn.
-#endif
-