Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp2a/lambda-generic3.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
// P0428R2 // { dg-do compile } // { dg-options "-Wpedantic" } int j = []<class T>(T t, int i) { return i; }(3, 4); // { dg-warning "lambda templates are only available with" "" { target c++17_down } .-1 } // { dg-warning "lambda expressions only available with" "" { target c++98_only } .-2 } // { dg-error "invalid use of 'auto'" "" { target c++98_only } .-3 }