summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/local-visibility.cpp
blob: fa2d20c43361069e3dcf366548f8b70b26730d55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang_cc1 -fsyntax-only -fmodules %s -verify
// RUN: %clang_cc1 -fsyntax-only %s -verify

// expected-no-diagnostics
template <typename Var>
struct S {
  template <unsigned N>
  struct Inner { };

  template <>
  struct Inner<0> { };
};

S<int>::Inner<1> I1;
S<int>::Inner<0> I0;
OpenPOWER on IntegriCloud