From 8d76cca3a261d0496395e18ef92cae46683618a0 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 4 Jan 2012 06:20:15 +0000 Subject: Don't treat 'import' as a contextual keyword when we're in a caching lexer, or when modules are disabled. llvm-svn: 147524 --- clang/test/Modules/lookup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/test/Modules') 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 -- cgit v1.2.3