aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/lookup.cpp')
-rw-r--r--test/Modules/lookup.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Modules/lookup.cpp b/test/Modules/lookup.cpp
index 5e84532e60..fdbdfd7a5c 100644
--- a/test/Modules/lookup.cpp
+++ b/test/Modules/lookup.cpp
@@ -15,6 +15,12 @@ void test(int i, float f) {
::f0(&f);
}
+int import;
+
+void f() {
+ int import;
+}
+
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -x objective-c++ -emit-module -fmodule-cache-path %t -fmodule-name=lookup_left_cxx %S/Inputs/module.map -verify
// RUN: %clang_cc1 -fmodules -x objective-c++ -emit-module -fmodule-cache-path %t -fmodule-name=lookup_right_cxx %S/Inputs/module.map -verify