Debian Codegraph @

gcc/testsuite/g++.dg/conversion/pr59879.C

raw
1 // PR c++/59879
2
3 struct Test {
4 template <int N>
5 Test(const char (&array)[N]) {}
6 };
7
8 Test test() {
9 return "test1";
10 }
11
12 void test2(Test arg = "test12") {}
13
14 template <typename T>
15 void test3(T arg = "test123") {}
16
17 template <typename T>
18 void test4(const T &arg = "test123") {}
19
20 int main() {
21 test();
22 test2();
23 test3<Test>();
24 test4<Test>();
25 }