1 // RUN: %clang_cc1 -std=c++1z %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
3 template<typename T
> struct A
{
8 template<typename T
> A(T
*) -> A
<long>;
11 // CHECK-LABEL: @_Z1fPi(
24 template<typename T
> struct B
{ B(T
); };
29 template<typename T
> struct C
{ C(T
); };
32 // CHECK: @_Z1gIiEDaT_DTcv1AfL0p_ES1_IS0_E
33 template<typename T
> auto g(T x
, decltype(A(x
)), A
<T
>) {}
34 // CHECK: @_Z1hIiEDaT_DTcvN1N1BEfL0p_ENS2_IS0_EE
35 template<typename T
> auto h(T x
, decltype(B(x
)), B
<T
>) {}
36 // CHECK: @_Z1iI1XiEDaT0_DTcvNT_1CEfL0p_ENS2_1CIS1_EE(
37 template<typename U
, typename T
> auto i(T x
, decltype(typename
U::C(x
)), typename
U::template C
<T
>) {}