aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/traditional-cpp.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-03-18 21:23:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-03-18 21:23:38 +0000
commit2ed42287b9b88a0bb08ab10e95e306da3f294ba9 (patch)
tree968485c50d1ca933ba0e3518d514d43c06abecbd /test/Preprocessor/traditional-cpp.c
parent5ce872fdcdf868c60e91f4669b2c2925c5c2e6cc (diff)
Lexer: Add extremely limited support for -traditional-cpp, ignoring BCPL
comments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/traditional-cpp.c')
-rw-r--r--test/Preprocessor/traditional-cpp.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Preprocessor/traditional-cpp.c b/test/Preprocessor/traditional-cpp.c
new file mode 100644
index 0000000000..5fc9ee398e
--- /dev/null
+++ b/test/Preprocessor/traditional-cpp.c
@@ -0,0 +1,12 @@
+/* Clang supports a very limited subset of -traditional-cpp, basically we only
+ * intend to add support for things that people actually rely on when doing
+ * things like using /usr/bin/cpp to preprocess non-source files. */
+
+/*
+ RUN: %clang_cc1 -traditional-cpp %s -E -o %t
+ RUN: FileCheck < %t %s
+*/
+
+/* CHECK: foo // bar
+ */
+foo // bar