view gcc/testsuite/g++.dg/conversion/pr59879.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

// 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>();
}