Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
defctor.C
blob: 76efaa1f0565ce4f98124f4b163d2d951cc22c81 [
file
] [
log
] [
blame
]
// { dg-do run }
// Bug: g++ doesn't generate default constructor.
class
A
{
public
:
int
i
;
};
extern
"C"
int
printf
(
const
char
*,
...);
int
main
()
{
A a
;
a
.
i
=
1
;
A b
(
a
);
printf
(
"%d\n"
,
b
.
i
);
}