1 // { dg-do assemble { target alpha*-*-* } }
2 // { dg-options "-Wno-deprecated" }
4 // This test verifies that return type promotion is working correctly.
5 // The Alpha ABI specifies that 32-bit return values have bit 31 propagated,
6 // i.e. the value is sign-extended even if the unpromoted type is unsigned.
8 unsigned int f(unsigned int x) return y(x) { } // { dg-error "" }
10 extern "C" void abort ();
14 typedef long (*long_func)(long);
15 long_func g = reinterpret_cast<long_func>(f);