blob: 0524052fce5b66db0d4a567e1f9d3bbc34c85cb1 [file] [log] [blame]
Richard Smith826711d2015-07-29 23:38:25 +00001// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t \
3// RUN: -fmodule-map-file=%S/Inputs/using-decl-redecl/module.modulemap \
4// RUN: -I%S/Inputs/using-decl-redecl \
Richard Smith2de44e62016-01-12 20:34:32 +00005// RUN: -Wno-modules-ambiguous-internal-linkage \
Richard Smith826711d2015-07-29 23:38:25 +00006// RUN: -verify %s
Richard Smith2de44e62016-01-12 20:34:32 +00007
8#include "d.h"
9
10const int n = 0;
11namespace M { using ::n; }
12
Richard Smith826711d2015-07-29 23:38:25 +000013#include "c.h"
Richard Smith2de44e62016-01-12 20:34:32 +000014
Richard Smith826711d2015-07-29 23:38:25 +000015N::clstring y = b;
16
17// Use a typo to trigger import of all declarations in N.
18N::clstrinh s; // expected-error {{did you mean 'clstring'}}
Richard Smith2de44e62016-01-12 20:34:32 +000019// expected-note@a.h:3 {{here}}
20
21namespace M { using N::n; }