Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaTemplate/instantiate-expr-3.cpp @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
63 template<typename T> | 63 template<typename T> |
64 struct StatementExpr0 { | 64 struct StatementExpr0 { |
65 void f(T t) { | 65 void f(T t) { |
66 (void)({ | 66 (void)({ |
67 if (t) // expected-error{{contextually convertible}} | 67 if (t) // expected-error{{contextually convertible}} |
68 t = t + 17; | 68 t = t + 17; // expected-error {{invalid operands to binary expression ('N1::X' and 'int')}} |
69 t + 12; // expected-error{{invalid operands}} | 69 t + 12; // expected-error{{invalid operands}} |
70 }); | 70 }); |
71 } | 71 } |
72 }; | 72 }; |
73 | 73 |