From 7fd1b9dc8507669f4a6250788452b52322c4570b Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 7 Jul 2020 11:43:58 -0700 Subject: [PATCH] testsuite: missed testcase 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 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/c-c++-common/cpp/pragma-eof.c 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 index 00000000000..c72be8042b5 --- /dev/null +++ b/gcc/testsuite/c-c++-common/cpp/pragma-eof.c @@ -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 -- 2.30.2