forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I15f17635e16b64c8aa3f8503b3c6b2d3d243823d
- Loading branch information
Showing
53 changed files
with
1,786 additions
and
473 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
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
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
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
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
47 changes: 47 additions & 0 deletions
47
clang/test/ASTMerge/class-template-spec/Inputs/class-template-spec.cpp
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,47 @@ | ||
namespace N0 { | ||
template<typename T> | ||
struct A { | ||
template<typename U> | ||
friend struct A; | ||
}; | ||
|
||
template struct A<long>; | ||
} // namespace N0 | ||
|
||
namespace N1 { | ||
template<typename T> | ||
struct A; | ||
|
||
template<typename T> | ||
struct A { | ||
template<typename U> | ||
friend struct A; | ||
}; | ||
|
||
template struct A<long>; | ||
} // namespace N1 | ||
|
||
namespace N2 { | ||
template<typename T> | ||
struct A { | ||
template<typename U> | ||
friend struct A; | ||
}; | ||
|
||
template<typename T> | ||
struct A; | ||
|
||
template struct A<long>; | ||
} // namespace N2 | ||
|
||
namespace N3 { | ||
struct A { | ||
template<typename T> | ||
friend struct B; | ||
}; | ||
|
||
template<typename T> | ||
struct B { }; | ||
|
||
template struct B<long>; | ||
} // namespace N3 |
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,8 @@ | ||
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class-template-spec.cpp | ||
// RUN: %clang_cc1 -ast-merge %t.1.ast -fsyntax-only -verify %s | ||
// expected-no-diagnostics | ||
|
||
template struct N0::A<short>; | ||
template struct N1::A<short>; | ||
template struct N2::A<short>; | ||
template struct N3::B<short>; |
Oops, something went wrong.