brintos

brintos / llvm-project-archived public Read only

0
0
Text · 629 B · 9732b31 Raw
14 lines · plain
1@import redecl_namespaces_left;2@import redecl_namespaces_right;3 4void test() {5  A::i;6  A::j;7  A::k;  // expected-error {{no member named 'k' in namespace 'A'}}8}9 10// RUN: rm -rf %t11// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -fmodules-cache-path=%t -emit-module -fmodule-name=redecl_namespaces_left %S/Inputs/module.modulemap12// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -x objective-c++ -fmodules-cache-path=%t -emit-module -fmodule-name=redecl_namespaces_right %S/Inputs/module.modulemap13// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs -w %s -verify14