repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
pr59879.C
blob
7bd5b9975c1180174f68fc72e58c607a9f57dcff
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
}