blob: 93102c04bc3a2166dcb84f91c8ba4022bde2ac3e [file] [log] [blame]
Douglas Gregor1b257af2012-12-11 22:11:52 +00001@import redecl_namespaces_left;
2@import redecl_namespaces_right;
Nick Lewyckyf33d5492012-04-12 07:56:21 +00003
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 %t
Douglas Gregor953a61f2013-02-07 19:01:24 +000011// RUN: %clang_cc1 -fmodules -x objective-c++ -fmodules-cache-path=%t -emit-module -fmodule-name=redecl_namespaces_left %S/Inputs/module.map
12// RUN: %clang_cc1 -fmodules -x objective-c++ -fmodules-cache-path=%t -emit-module -fmodule-name=redecl_namespaces_right %S/Inputs/module.map
13// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -w %s -verify