* gcc.dg/cpp-li2.c: New test.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Fri, 25 Feb 2000 05:05:40 +0000 (05:05 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 25 Feb 2000 05:05:40 +0000 (05:05 +0000)
From-SVN: r32146

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp-li2.c [new file with mode: 0644]

index 00a6fa7e6e06f4c4e4a7b3e94fac1f1846614fe6..dee6f312324f4247b5aecfeb1d877ec490e5113a 100644 (file)
@@ -1,5 +1,7 @@
 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
+       * gcc.dg/cpp-li2.c: New test.
+
        * gcc.dg/cpp-wi1.c: New test.
 
        * gcc.dg/cpp-li1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/cpp-li2.c b/gcc/testsuite/gcc.dg/cpp-li2.c
new file mode 100644 (file)
index 0000000..5ee0e04
--- /dev/null
@@ -0,0 +1,13 @@
+/* Copyright (C) 2000  Free Software Foundation.
+
+   by Alexandre Oliva  <oliva@lsd.ic.unicamp.br>  */
+
+/* { dg-do preprocess } */
+
+#line 1
+#line 0 
+#line 2
+#line 32768 
+
+/* { dg-error "out of range" "line # too low" { target *-*-* } 1 } */
+/* { dg-error "out of range" "line # too high" { target *-*-* } 2 } */