testsuite:missed testcase

Message ID 7bb88133-76a6-4a72-9f78-ed3b88573c86@fb.com
State New
Headers show
Series
  • testsuite:missed testcase
Related show

Commit Message

Patrick Palka via Gcc-patches July 7, 2020, 6:46 p.m.
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

-- 
Nathan Sidwell : Facebook

Patch

diff --git c/gcc/testsuite/c-c++-common/cpp/pragma-eof.c w/gcc/testsuite/c-c++-common/cpp/pragma-eof.c
new file mode 100644
index 00000000000..c72be8042b5
--- /dev/null
+++ w/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