summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/hash_line.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/hash_line.c')
-rw-r--r--clang/test/Preprocessor/hash_line.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/hash_line.c b/clang/test/Preprocessor/hash_line.c
new file mode 100644
index 0000000..4f724df
--- /dev/null
+++ b/clang/test/Preprocessor/hash_line.c
@@ -0,0 +1,8 @@
+// The 1 and # should not go on the same line.
+// RUN: %clang_cc1 %s -E | not grep "1 #"
+// RUN: %clang_cc1 %s -E | grep '^1$'
+// RUN: %clang_cc1 %s -E | grep '^ #$'
+1
+#define EMPTY
+EMPTY #
+