summaryrefslogtreecommitdiff
path: root/test/Preprocessor/hash_space.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/hash_space.c')
-rw-r--r--test/Preprocessor/hash_space.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/hash_space.c b/test/Preprocessor/hash_space.c
new file mode 100644
index 0000000000..77f5cfc530
--- /dev/null
+++ b/test/Preprocessor/hash_space.c
@@ -0,0 +1,6 @@
+// RUN: clang %s -E | grep " #"
+
+// Should put a space before the # so that -fpreprocessed mode doesn't
+// macro expand this again.
+#define HASH #
+HASH define foo bar