Douglas Gregor | 1b257af | 2012-12-11 22:11:52 +0000 | [diff] [blame] | 1 | @import redecl_namespaces_left; |
| 2 | @import redecl_namespaces_right; |
Nick Lewycky | f33d549 | 2012-04-12 07:56:21 +0000 | [diff] [blame] | 3 | |
| 4 | void 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 Gregor | 953a61f | 2013-02-07 19:01:24 +0000 | [diff] [blame] | 11 | // 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 |