forked from llvm-mirror/clang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334160 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
57ebd13
commit 9185154
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; |