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