Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaTemplate/constructor-template.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
156 } | 156 } |
157 | 157 |
158 namespace self_by_value_2 { | 158 namespace self_by_value_2 { |
159 template <class T, class U> struct A { | 159 template <class T, class U> struct A { |
160 A() {} // expected-note {{not viable: requires 0 arguments}} | 160 A() {} // expected-note {{not viable: requires 0 arguments}} |
161 A(A<T,U> &o) {} // expected-note {{not viable: expects an l-value}} | 161 A(A<T,U> &o) {} // expected-note {{not viable: expects an lvalue}} |
162 A(A<T,T> o) {} // expected-note {{ignored: instantiation takes its own class type by value}} | 162 A(A<T,T> o) {} // expected-note {{ignored: instantiation takes its own class type by value}} |
163 }; | 163 }; |
164 | 164 |
165 void helper_A(A<int,int>); // expected-note {{passing argument to parameter here}} | 165 void helper_A(A<int,int>); // expected-note {{passing argument to parameter here}} |
166 void test_A() { | 166 void test_A() { |