Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / return2.C
blob132c07929ff2455b0e09064468517c9c8061baf8
1 // { dg-do run  }
2 // PRMS Id: 5368
3 // Bug: the X temporary in foo() is not destroyed.
5 int c = 0;
7 struct X {
8   X (int) { c++; }
9   ~X() { c--; }
12 struct Y {
13    Y(const X &) { }
16 Y foo() { 
17   return X(3); 
20 int main()
22   foo();
23   return c;