comparison gcc/testsuite/g++.dg/ext/varargs2.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }