PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / conversion / pr59879.C
blob7bd5b9975c1180174f68fc72e58c607a9f57dcff
1 // PR c++/59879
3 struct Test {
4  template <int N>
5  Test(const char (&array)[N]) {}
6 };
8 Test test() {
9  return "test1";
12 void test2(Test arg = "test12") {}
14 template <typename T>
15 void test3(T arg = "test123") {}
17 template <typename T>
18 void test4(const T &arg = "test123") {}
20 int main() {
21  test();
22  test2();
23  test3<Test>();
24  test4<Test>();