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