summaryrefslogtreecommitdiffstats
path: root/test/Index/preamble-conditionals-inverted.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Index/preamble-conditionals-inverted.cpp')
-rw-r--r--test/Index/preamble-conditionals-inverted.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Index/preamble-conditionals-inverted.cpp b/test/Index/preamble-conditionals-inverted.cpp
index 1d67ccb61a..f5cf1205e3 100644
--- a/test/Index/preamble-conditionals-inverted.cpp
+++ b/test/Index/preamble-conditionals-inverted.cpp
@@ -3,6 +3,8 @@
// RUN: | FileCheck %s --implicit-check-not "error:"
#ifdef FOO_H
-void foo();
+void foo() {}
#endif
+
+int foo() { return 0; }