llvm-project/clang/test/Modules/local-visibility.cpp
Richard Trieu 8153628f6a Change return value of trivial visibility check.
Previous, if no Decl's were checked, visibility was set to false.  Switch it
so that in cases of no Decl's, return true.  These are the Decl's after being
filtered.  Also remove an unreachable return statement since it is directly
after another return statement.

llvm-svn: 334160
2018-06-07 03:20:30 +00:00

16 lines
289 B
C++

// 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;