summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/macro_arg_empty.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/macro_arg_empty.c')
-rw-r--r--clang/test/Preprocessor/macro_arg_empty.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/macro_arg_empty.c b/clang/test/Preprocessor/macro_arg_empty.c
new file mode 100644
index 00000000000..b5ecaa27ba1
--- /dev/null
+++ b/clang/test/Preprocessor/macro_arg_empty.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
+
+#define FOO(x) x
+#define BAR(x) x x
+#define BAZ(x) [x] [ x] [x ]
+[FOO()] [ FOO()] [FOO() ] [BAR()] [ BAR()] [BAR() ] BAZ()
+// CHECK: [] [ ] [ ] [ ] [ ] [ ] [] [ ] [ ]
OpenPOWER on IntegriCloud