]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.ext/namedret2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.ext / namedret2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/namedret2.C b/gcc/testsuite/g++.old-deja/g++.ext/namedret2.C
deleted file mode 100644 (file)
index 8e2b4e6..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// Skip if not target: alpha*-*-*
-// Special g++ Options: -Wno-deprecated
-
-// This test verifies that return type promotion is working correctly.  
-// The Alpha ABI specifies that 32-bit return values have bit 31 propagated,
-// i.e. the value is sign-extended even if the unpromoted type is unsigned.
-
-unsigned int f(unsigned int x) return y(x) { }
-
-extern "C" void abort ();
-
-int main()
-{
-  typedef long (*long_func)(long);
-  long_func g = reinterpret_cast<long_func>(f);
-
-  if (g(-1L) != -1L)
-    abort ();
-  return 0;
-}