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++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
varargs2.C
blob
13ddf5bb5279eb58b77c81c885a6cbe2017d9da8
1
// { dg-do run }
2
3
int c;
4
struct X { X() {}; X(const X&) { ++c; } };
5
void Foo (X, ...) {}
6
void bin (X &p)
7
{
8
Foo (p, p);
9
}
10
11
int main()
12
{
13
X x;
14
bin(x);
15
if (c != 2)
16
__builtin_abort();
17
}