990119-1.c: Renamed to...
authorZack Weinberg <zack@rabi.columbia.edu>
Sun, 28 Feb 1999 15:03:13 +0000 (15:03 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sun, 28 Feb 1999 15:03:13 +0000 (15:03 +0000)
1999-02-28 17:59 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/990119-1.c [deleted file]
gcc/testsuite/gcc.dg/990119-1.c [new file with mode: 0644]

index 102ae23cfafbe82baa0d9165025ac63995d47c83..4c912a0ebc2862d3bc9698694ec6fd8de09fb567 100644 (file)
@@ -1,3 +1,10 @@
+1999-02-28 17:59 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
+
+       * 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  <zack@rabi.columbia.edu>
 
        * 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 (file)
index 80981cc..0000000
+++ /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 (file)
index 0000000..7e33518
--- /dev/null
@@ -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;
+}