aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/_Pragma4.c
diff options
context:
space:
mode:
author(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-01 20:22:45 +0000
committer(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-01 20:22:45 +0000
commitef6e6fa2fdd2f0b9d359dc1f7be533275b8488ad (patch)
tree7a3eea9a66252753dfdcfdb2050c8fecfdf112b3 /gcc/testsuite/gcc.dg/cpp/_Pragma4.c
parentb2c70b118eacbf74cad603bd6ee927320f0f737b (diff)
This commit was manufactured by cvs2svn to create tagmips-3_4-rewrite-bib-merge-20021002
'mips-3_4-rewrite-bib-merge-20021002'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/mips-3_4-rewrite-bib-merge-20021002@57704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/_Pragma4.c')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/_Pragma4.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/_Pragma4.c b/gcc/testsuite/gcc.dg/cpp/_Pragma4.c
new file mode 100644
index 00000000000..a7ac42d4e47
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/_Pragma4.c
@@ -0,0 +1,12 @@
+/* { dg-do preprocess } */
+
+/* Based on Debian GNATS PR 157416. 3 Sep 2002. */
+
+#define b foo _Pragma ("bar") baz
+a b c
+
+/*
+ { dg-final { if ![file exists _Pragma4.i] { return } } }
+ { dg-final { if { [grep _Pragma4.i "#pragma bar "] != "" } { return } } }
+ { dg-final { fail "_Pragma4.c: #pragma appearing on its own line" } }
+*/