blob: 7bd5b9975c1180174f68fc72e58c607a9f57dcff [file] [log] [blame]
// PR c++/59879
struct Test {
template <int N>
Test(const char (&array)[N]) {}
};
Test test() {
return "test1";
}
void test2(Test arg = "test12") {}
template <typename T>
void test3(T arg = "test123") {}
template <typename T>
void test4(const T &arg = "test123") {}
int main() {
test();
test2();
test3<Test>();
test4<Test>();
}