aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-06-29 19:55:26 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-06-29 19:55:26 +0000
commitd1e43c8bf095960b34fc36a18150b81c300f05ce (patch)
tree0f585c9ef681e4c8258523a00fd2668646f3a4e8 /gcc/testsuite/gcc.dg/cpp
parent122168d7b2905b6a7f57f43b3ca54bbc8ece5dce (diff)
downloadgcc-d1e43c8bf095960b34fc36a18150b81c300f05ce.zip
gcc-d1e43c8bf095960b34fc36a18150b81c300f05ce.tar.gz
gcc-d1e43c8bf095960b34fc36a18150b81c300f05ce.tar.bz2
Move the c-torture/noncompile tests to either gcc.dg/cpp or a new gcc.dg/noncompile directory...
Move the c-torture/noncompile tests to either gcc.dg/cpp or a new gcc.dg/noncompile directory, depending on whether they're preprocessor tests or not. Annotate all the tests for the dg framework. * gcc.c-torture/noncompile/noncompile.exp: Delete. * gcc.dg/noncompile/noncompile.exp: New. * Moved files: Old name New name gcc.c-torture/noncompile/920507-1.c gcc.dg/noncompile/920507-1.c gcc.c-torture/noncompile/920616-2.c gcc.dg/noncompile/920616-2.c gcc.c-torture/noncompile/920721-2.c gcc.dg/noncompile/920721-2.c gcc.c-torture/noncompile/920824-1.c gcc.dg/noncompile/920824-1.c gcc.c-torture/noncompile/920923-1.c gcc.dg/noncompile/920923-1.c gcc.c-torture/noncompile/921102-1.c gcc.dg/noncompile/921102-1.c gcc.c-torture/noncompile/921116-1.c gcc.dg/noncompile/921116-1.c gcc.c-torture/noncompile/930301-1.c gcc.dg/noncompile/930301-1.c gcc.c-torture/noncompile/930622-1.c gcc.dg/noncompile/930622-1.c gcc.c-torture/noncompile/930622-2.c gcc.dg/noncompile/930622-2.c gcc.c-torture/noncompile/930714-1.c gcc.dg/noncompile/930714-1.c gcc.c-torture/noncompile/931203-1.c gcc.dg/noncompile/931203-1.c gcc.c-torture/noncompile/940112-1.c gcc.dg/noncompile/940112-1.c gcc.c-torture/noncompile/940227-1.c gcc.dg/noncompile/940227-1.c gcc.c-torture/noncompile/940510-1.c gcc.dg/noncompile/940510-1.c gcc.c-torture/noncompile/950825-1.c gcc.dg/noncompile/950825-1.c gcc.c-torture/noncompile/950921-1.c gcc.dg/noncompile/950921-1.c gcc.c-torture/noncompile/951123-1.c gcc.dg/noncompile/951123-1.c gcc.c-torture/noncompile/971104-1.c gcc.dg/noncompile/971104-1.c gcc.c-torture/noncompile/990416-1.c gcc.dg/noncompile/990416-1.c gcc.c-torture/noncompile/init-1.c gcc.dg/noncompile/init-1.c gcc.c-torture/noncompile/init-2.c gcc.dg/noncompile/init-2.c gcc.c-torture/noncompile/invalid_asm.c gcc.dg/noncompile/invalid_asm.c gcc.c-torture/noncompile/va-arg-1.c gcc.dg/noncompile/va-arg-1.c gcc.c-torture/noncompile/940712-1.c gcc.dg/cpp/19940712-1.c gcc.c-torture/noncompile/940712-1.h gcc.dg/cpp/19940712-1.h gcc.c-torture/noncompile/940712-1a.h gcc.dg/cpp/19940712-1a.h gcc.c-torture/noncompile/940712-1b.h gcc.dg/cpp/19940712-1b.h gcc.c-torture/noncompile/951025-1.c gcc.dg/cpp/19951025-1.c gcc.c-torture/noncompile/951227-1.c gcc.dg/cpp/19951227-1.c From-SVN: r34791
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19940712-1.c19
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19940712-1.h10
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19940712-1a.h4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19940712-1b.h2
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19951025-1.c4
-rw-r--r--gcc/testsuite/gcc.dg/cpp/19951227-1.c3
6 files changed, 42 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/19940712-1.c b/gcc/testsuite/gcc.dg/cpp/19940712-1.c
new file mode 100644
index 0000000..5b4ac8b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/19940712-1.c
@@ -0,0 +1,19 @@
+/* { dg-do preprocess } */
+/* PR 4713 */
+
+/* dg.exp doesn't read the header files for magic comments. */
+/* { dg-error "unterminated comment" "" { target *-*-* } 4 } */
+/* { dg-error "unterminated comment" "" { target *-*-* } 8 } */
+
+#include "19940712-1.h" /* { dg-error "" } // In file included from: */
+#include "19940712-1a.h" /* { dg-error "" } // In file included from: */
+#include "19940712-1b.h"
+
+/* comment start in comment error
+/* in a .c file */
+
+int main ()
+{
+ return 0;
+}
+
diff --git a/gcc/testsuite/gcc.dg/cpp/19940712-1.h b/gcc/testsuite/gcc.dg/cpp/19940712-1.h
new file mode 100644
index 0000000..1838213
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/19940712-1.h
@@ -0,0 +1,10 @@
+/* comment start in comment error
+/* in a .h file */
+
+#if 0
+#endif /* comment start in comment error
+/* after a cpp directive */
+
+/* comment start in comment error
+
+
diff --git a/gcc/testsuite/gcc.dg/cpp/19940712-1a.h b/gcc/testsuite/gcc.dg/cpp/19940712-1a.h
new file mode 100644
index 0000000..55ab6b8
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/19940712-1a.h
@@ -0,0 +1,4 @@
+/* spanning a .h file */
+
+#if 0
+#endif /* comment start in comment error
diff --git a/gcc/testsuite/gcc.dg/cpp/19940712-1b.h b/gcc/testsuite/gcc.dg/cpp/19940712-1b.h
new file mode 100644
index 0000000..d75156c
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/19940712-1b.h
@@ -0,0 +1,2 @@
+/* spanning a .h file */
+
diff --git a/gcc/testsuite/gcc.dg/cpp/19951025-1.c b/gcc/testsuite/gcc.dg/cpp/19951025-1.c
new file mode 100644
index 0000000..c243df0
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/19951025-1.c
@@ -0,0 +1,4 @@
+/* { dg-do preprocess } */
+/* { dg-error "include expects" "" { target *-*-* } 4 } */
+/* { dg-warning "no newline" "" { target *-*-* } 5 } */
+#include /\
diff --git a/gcc/testsuite/gcc.dg/cpp/19951227-1.c b/gcc/testsuite/gcc.dg/cpp/19951227-1.c
new file mode 100644
index 0000000..0d8fcfd
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/19951227-1.c
@@ -0,0 +1,3 @@
+/* { dg-do preprocess } */
+#if 0xe-1 /* { dg-error "invalid number" } */
+#endif