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