summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-11 20:10:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-11 20:10:12 +0000
commitd839e77b12313c0150b11835c9302b24fc70b95a (patch)
tree9fb01a8605b52b2d156b529a1f6f78c4ddee4fdd /clang/test/Frontend
parentafe54f1625f57ab65a8446d582621a167eec5c9a (diff)
downloadbcm5719-llvm-d839e77b12313c0150b11835c9302b24fc70b95a.tar.gz
bcm5719-llvm-d839e77b12313c0150b11835c9302b24fc70b95a.zip
Preprocessor: Ignore unknown pragmas in -E -dM and -Eonly modes.
llvm-svn: 105830
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/unknown-pragmas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Frontend/unknown-pragmas.c b/clang/test/Frontend/unknown-pragmas.c
new file mode 100644
index 00000000000..53a5a45a433
--- /dev/null
+++ b/clang/test/Frontend/unknown-pragmas.c
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 -Eonly -Wall -verify %s
+// RUN: %clang_cc1 -E -dM -Wall -verify %s
+
+#pragma adgohweopihweotnwet
OpenPOWER on IntegriCloud