]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/constexpr-53094-3.C
Regenerate riscv.opt.urls and i386.opt.urls
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-53094-3.C
1 // { dg-do compile { target c++11 } }
2 // { dg-options "" }
3 // Ignore warning on some powerpc-ibm-aix configurations.
4 // { dg-prune-output "non-standard ABI extension" }
5
6 typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4;
7
8 struct Rot3 {
9 typedef float T;
10 typedef V4 Vec;
11 Vec axis[3];
12 constexpr Rot3 (V4 ix, V4 iy, V4 iz) : axis {ix, iy, iz} {}
13
14 constexpr Rot3(T xx, T xy, T xz, T yx, T yy, T yz, T zx, T zy, T zz) :
15 Rot3((Vec) { xx, xy, xz, 0 },
16 (Vec) { yx, yy, yz, 0 },
17 (Vec) { zx, zy, zz, 0 }) {}
18
19 };
20
21 constexpr Rot3 r1( 0, 1 ,0, 0, 0, 1, 1, 0, 0);