testsuite: missed testcase
authorNathan Sidwell <nathan@acm.org>
Tue, 7 Jul 2020 18:43:58 +0000 (11:43 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 7 Jul 2020 18:45:16 +0000 (11:45 -0700)
I discovered I'd missed applying a testcase when fixing up the EOF
token location a while back.

gcc/testsuite/
* c-c++-common/cpp/pragma-eof.c: New

gcc/testsuite/c-c++-common/cpp/pragma-eof.c [new file with mode: 0644]

diff --git a/gcc/testsuite/c-c++-common/cpp/pragma-eof.c b/gcc/testsuite/c-c++-common/cpp/pragma-eof.c
new file mode 100644 (file)
index 0000000..c72be80
--- /dev/null
@@ -0,0 +1,6 @@
+/* { dg-additional-options -fopenmp }  */
+
+/* { dg-error "expected" "" { target *-*-* } 6 } */
+/* Make sure we see pragma_eol even though lacking new line.  *
+/* no newline at end of file.  */
+#pragma omp parallel
\ No newline at end of file