Merge from branches/gcc-4_8-branch up to rev 207411.
[official-gcc.git] / gcc-4_8-branch / gcc / testsuite / g++.dg / cpp0x / constexpr-53094-2.C
blob1c5129dcb3fc762054cf0ba4f5821e06f94f3858
1 // { dg-do compile }
2 // { dg-options "-std=gnu++11" }
3 // Ignore warning on some powerpc-ibm-aix configurations.
4 // { dg-prune-output "non-standard ABI extension" }
5 // { dg-prune-output "changes the ABI" }
7 typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4;
8 constexpr V4 build (float x, float y, float z) { return (V4){ x, y, z, 0 };}
9 constexpr V4 x = build (1, 0, 0);