1826711d4SRichard Smith // RUN: rm -rf %t 2826711d4SRichard Smith // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t \ 3826711d4SRichard Smith // RUN: -fmodule-map-file=%S/Inputs/using-decl-redecl/module.modulemap \ 4826711d4SRichard Smith // RUN: -I%S/Inputs/using-decl-redecl \ 5*2de44e65SRichard Smith // RUN: -Wno-modules-ambiguous-internal-linkage \ 6826711d4SRichard Smith // RUN: -verify %s 7*2de44e65SRichard Smith 8*2de44e65SRichard Smith #include "d.h" 9*2de44e65SRichard Smith 10*2de44e65SRichard Smith const int n = 0; 11*2de44e65SRichard Smith namespace M { using ::n; } 12*2de44e65SRichard Smith 13826711d4SRichard Smith #include "c.h" 14*2de44e65SRichard Smith 15826711d4SRichard Smith N::clstring y = b; 16826711d4SRichard Smith 17826711d4SRichard Smith // Use a typo to trigger import of all declarations in N. 18826711d4SRichard Smith N::clstrinh s; // expected-error {{did you mean 'clstring'}} 19*2de44e65SRichard Smith // expected-note@a.h:3 {{here}} 20*2de44e65SRichard Smith 21*2de44e65SRichard Smith namespace M { using N::n; } 22