* ru.po: Update.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / rvalue2.C
blob77189a5ebfdd324147d2d0a4a7668ec66e06a16b
1 // { dg-do run  }
2 // Test for undesired aliasing.
4 struct A {
5   const A * get_this () const { return this; }
6 };
8 int main ()
10   A a;
11   int r = 0;
12   const A& ar1 = (A)a;
13   if (&ar1 == &a)
14     r |= 1;
15   if (A(a).get_this () == &a)
16     r |= 2;
17   return r;