Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp1y/var-templ46.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 // PR c++/67838 |
2 // { dg-do compile { target c++14 } } | |
3 | |
4 template<bool LMode> | |
5 static auto TestFunc = [](int param1) | |
6 { | |
7 return param1; | |
8 }; | |
9 | |
10 template<typename Func> | |
11 static void test(Func func) | |
12 { | |
13 func(12345); | |
14 } | |
15 | |
16 int main() | |
17 { | |
18 test(TestFunc<false>); | |
19 test(TestFunc<true>); | |
20 } |