From: Chris Lattner Date: Tue, 28 Apr 2009 18:43:12 +0000 (+0000) Subject: merge number.c into constants.c and start running it in -verify mode. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dec3a1aa161fdd4a8dd650eee522c020490732f;p=clang 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 --- 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 -