summaryrefslogtreecommitdiffstats
path: root/test/Index/preamble-conditionals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/preamble-conditionals.cpp')
-rw-r--r--test/Index/preamble-conditionals.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Index/preamble-conditionals.cpp b/test/Index/preamble-conditionals.cpp
new file mode 100644
index 0000000000..81ef8265e8
--- /dev/null
+++ b/test/Index/preamble-conditionals.cpp
@@ -0,0 +1,8 @@
+// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source local %s 2>&1 \
+// RUN: | FileCheck %s --implicit-check-not "error:"
+#ifndef FOO_H
+#define FOO_H
+
+void foo();
+
+#endif