summaryrefslogtreecommitdiffstats
path: root/test/Index/preamble-conditionals-skipping.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/preamble-conditionals-skipping.cpp')
-rw-r--r--test/Index/preamble-conditionals-skipping.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Index/preamble-conditionals-skipping.cpp b/test/Index/preamble-conditionals-skipping.cpp
new file mode 100644
index 0000000000..fa5764cd5d
--- /dev/null
+++ b/test/Index/preamble-conditionals-skipping.cpp
@@ -0,0 +1,16 @@
+// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 \
+// RUN: local -std=c++14 %s 2>&1 \
+// RUN: | FileCheck %s --implicit-check-not "error:"
+
+#ifdef MYCPLUSPLUS
+extern "C" {
+#endif
+
+#ifdef MYCPLUSPLUS
+}
+#endif
+
+int main()
+{
+ return 0;
+}