gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // Ignore warning on some powerpc-ibm-aix configurations. |
| 3 | // { dg-prune-output "non-standard ABI extension" } |
| 4 | // { dg-prune-output "changes the ABI" } |
| 5 | |
| 6 | typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4; |
| 7 | constexpr V4 build (float x, float y, float z) { return __extension__ (V4){ x, y, z, 0 };} |
| 8 | constexpr V4 x = build (1, 0, 0); |