* gcc.dg/cpp-wi1.c: New test.
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Feb 2000 04:59:04 +0000 (04:59 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Feb 2000 04:59:04 +0000 (04:59 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32145 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp-wi1.c [new file with mode: 0644]

index cda4dd3..00a6fa7 100644 (file)
@@ -1,5 +1,7 @@
 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
+       * gcc.dg/cpp-wi1.c: New test.
+
        * gcc.dg/cpp-li1.c: New test.
 
 2000-02-24  Nathan Sidwell  <nathan@codesourcery.com>
diff --git a/gcc/testsuite/gcc.dg/cpp-wi1.c b/gcc/testsuite/gcc.dg/cpp-wi1.c
new file mode 100644 (file)
index 0000000..837efad
--- /dev/null
@@ -0,0 +1,9 @@
+/* Copyright (C) 2000  Free Software Foundation.
+
+   by Alexandre Oliva  <oliva@lsd.ic.unicamp.br>  */
+
+/* { dg-do preprocess } */
+
+#line 1 L"foo" /* { dg-error "not a string" "wide string in #line" } */
+#include L"stdio.h" /* { dg-error "expects" "wide string in #include" } */
+#pragma implementation L"test.h" /* { dg-error "malformed" "wide string in #pragma implementation" } */