]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.jason/rvalue2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / rvalue2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rvalue2.C b/gcc/testsuite/g++.old-deja/g++.jason/rvalue2.C
deleted file mode 100644 (file)
index 71f59bc..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// Test for undesired aliasing.
-
-struct A {
-  const A * get_this () const { return this; }
-};
-
-int main ()
-{
-  A a;
-  int r = 0;
-  const A& ar1 = (A)a;
-  if (&ar1 == &a)
-    r |= 1;
-  if (A(a).get_this () == &a)
-    r |= 2;
-  return r;
-}