From: Zack Weinberg Date: Sun, 28 Feb 1999 15:03:13 +0000 (+0000) Subject: 990119-1.c: Renamed to... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5762f506e7ee52e72a822c55f5b5aae7c8946b6e;p=gcc.git 990119-1.c: Renamed to... 1999-02-28 17:59 -0500 Zack Weinberg * gcc.c-torture/execute/990119-1.c: Renamed to... * gcc.dg/990119-1.c: this, so it will only be tested once (it's a preprocessor test, it doesn't need to be run at multiple optimization levels). From-SVN: r25506 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 102ae23cfaf..4c912a0ebc2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +1999-02-28 17:59 -0500 Zack Weinberg + + * gcc.c-torture/execute/990119-1.c: Renamed to... + * gcc.dg/990119-1.c: this, so it will only be tested once + (it's a preprocessor test, it doesn't need to be run at + multiple optimization levels). + 1999-02-27 13:34 -0500 Zack Weinberg * lib/g++.exp: Don't add incdir=$base_dir/../include to diff --git a/gcc/testsuite/gcc.c-torture/execute/990119-1.c b/gcc/testsuite/gcc.c-torture/execute/990119-1.c deleted file mode 100644 index 80981cc9e9c..00000000000 --- a/gcc/testsuite/gcc.c-torture/execute/990119-1.c +++ /dev/null @@ -1,13 +0,0 @@ -/* This checks for two things: - - an obscure corner case in the standard rules for __LINE__ - - regression of an associated bug in cpplib where the semicolon got lost */ -int i = __LINE__\ -; - -int main (void) -{ - if (i != 4) - abort(); - else - return 0; -} diff --git a/gcc/testsuite/gcc.dg/990119-1.c b/gcc/testsuite/gcc.dg/990119-1.c new file mode 100644 index 00000000000..7e33518a35c --- /dev/null +++ b/gcc/testsuite/gcc.dg/990119-1.c @@ -0,0 +1,15 @@ +/* This checks for two things: + - an obscure corner case in the standard rules for __LINE__ + - regression of an associated bug in cpplib where the semicolon got lost */ +/* { dg-do run } */ + +int i = __LINE__\ +; + +int main (void) /* { dg-bogus "parse error" "semicolon eaten" } */ +{ + if (i != 6) + abort(); + else + return 0; +}