1*67e74705SXin Li // RUN: rm -rf %t 2*67e74705SXin Li // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t \ 3*67e74705SXin Li // RUN: -fmodule-map-file=%S/Inputs/using-decl-redecl/module.modulemap \ 4*67e74705SXin Li // RUN: -I%S/Inputs/using-decl-redecl \ 5*67e74705SXin Li // RUN: -Wno-modules-ambiguous-internal-linkage \ 6*67e74705SXin Li // RUN: -verify %s 7*67e74705SXin Li 8*67e74705SXin Li #include "d.h" 9*67e74705SXin Li 10*67e74705SXin Li const int n = 0; 11*67e74705SXin Li namespace M { using ::n; } 12*67e74705SXin Li 13*67e74705SXin Li #include "c.h" 14*67e74705SXin Li 15*67e74705SXin Li N::clstring y = b; 16*67e74705SXin Li 17*67e74705SXin Li // Use a typo to trigger import of all declarations in N. 18*67e74705SXin Li N::clstrinh s; // expected-error {{did you mean 'clstring'}} 19*67e74705SXin Li // [email protected]:3 {{here}} 20*67e74705SXin Li 21*67e74705SXin Li namespace M { using N::n; } 22