diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-04 06:20:15 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-04 06:20:15 +0000 |
commit | 8d76cca3a261d0496395e18ef92cae46683618a0 (patch) | |
tree | 05852966bfe4d718e1d27bf0b8449a353d5c2067 /clang/test/Modules/lookup.cpp | |
parent | 2aa7acfadbfb840091e0cb49c0c704e5873a6647 (diff) | |
download | bcm5719-llvm-8d76cca3a261d0496395e18ef92cae46683618a0.tar.gz bcm5719-llvm-8d76cca3a261d0496395e18ef92cae46683618a0.zip |
Don't treat 'import' as a contextual keyword when we're in a caching lexer, or when modules are disabled.
llvm-svn: 147524
Diffstat (limited to 'clang/test/Modules/lookup.cpp')
-rw-r--r-- | clang/test/Modules/lookup.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Modules/lookup.cpp b/clang/test/Modules/lookup.cpp index 5e84532e60f..fdbdfd7a5cf 100644 --- a/clang/test/Modules/lookup.cpp +++ b/clang/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 |