OSDN Git Service

fix
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / init16.C
1 // Origin: Jakub Jelinek <jakub@redhat.com>
2
3 struct bar {
4   char c;
5   bar (const char *);
6   bar (const bar &);
7 };
8
9 struct foo {
10   bar x;
11 };
12
13 extern const struct foo y = { "foo" };
14
15 bar::bar (const bar &ref)
16 {
17   c = ref.c;
18 }
19
20 bar::bar (const char *p)
21 {
22   c = p[2];
23 }
24
25 int main ()
26 {
27   return y.x.c != 'o';
28 }