1*f4a2713aSLionel Sambuc@import redecl_namespaces_left; 2*f4a2713aSLionel Sambuc@import redecl_namespaces_right; 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambucvoid test() { 5*f4a2713aSLionel Sambuc A::i; 6*f4a2713aSLionel Sambuc A::j; 7*f4a2713aSLionel Sambuc A::k; // expected-error {{no member named 'k' in namespace 'A'}} 8*f4a2713aSLionel Sambuc} 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc// RUN: rm -rf %t 11*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fmodules -x objective-c++ -fmodules-cache-path=%t -emit-module -fmodule-name=redecl_namespaces_left %S/Inputs/module.map 12*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fmodules -x objective-c++ -fmodules-cache-path=%t -emit-module -fmodule-name=redecl_namespaces_right %S/Inputs/module.map 13*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -w %s -verify 14