Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Concepts] ConceptSpecializationExprs mangling
Implement mangling for CSEs to match regular template-ids. Reviewed as part of D41569 <https://reviews.llvm.org/D41569>. Re-commit fixing failing test. llvm-svn: 375063
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// RUN: %clang_cc1 -verify -Wno-return-type -Wno-main -std=c++2a -fconcepts-ts -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s | ||
// expected-no-diagnostics | ||
|
||
namespace test1 { | ||
template <bool> struct S {}; | ||
template <typename> concept C = true; | ||
template <typename T = int> S<C<T>> f0() { return S<C<T>>{}; } | ||
template S<C<int>> f0<>(); | ||
// CHECK: @_ZN5test12f0IiEENS_1SIXL_ZNS_1CIT_EEEEEEv( | ||
} | ||
|
||
template <bool> struct S {}; | ||
template <typename> concept C = true; | ||
template <typename T = int> S<C<T>> f0() { return S<C<T>>{}; } | ||
template S<C<int>> f0<>(); | ||
// CHECK: @_Z2f0IiE1SIXL_Z1CIT_EEEEv( |