blob: 4d434cd9ca08913fc19bc9e5b3687f89ebe079b5 [file] [log] [blame]
// PR c++/61402
// { dg-do run { target c++14 } }
extern "C" void abort();
template<typename T>
void foo(T t) {
auto test = [ i = ++t ](T v) {
if (i != v)
abort();
};
test(t);
}
int main(){
foo(3.14f);
foo(0);
foo('a');
}