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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
copy1.C
blob
670cacd64fdea1b2abd1c6f5791a123d84c1e240
1
// { dg-do run }
2
// GROUPS passed copy-ctors
3
extern "C" int printf (const char *, ...);
4
int count = 0;
5
6
class C {
7
public:
8
C (int) { count++; }
9
operator int () { return 0; }
10
};
11
12
int
13
main ()
14
{
15
C c1 (1);
16
C c2 (c1);
17
18
if (count != 1)
19
{ printf ("FAIL\n"); return 1; }
20
else
21
printf ("PASS\n");
22
}