Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / opt / pr19317-2.C
blob70c642b219dd15089396e2da0a4b7bf61eb2209d
1 // PR c++/19317
2 // { dg-options "-O2" }
3 // { dg-do run }
5 extern "C" void abort (void);
7 struct A
9   A () { d = e = 0; f = -1; }
10   A (int x) : d (0), e (0), f (x) { }
11   A b () const;
12   int d;
13   int e;
14   int f;
18 A::b () const
20   A t;
21   t.f = 10 + this->f;
22   return t;
25 int
26 main ()
28   A a (100);
29   a = a.b ();
30   if (a.f != 110)
31     abort ();