Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / torture / vector-struct-1.C
blob969a801e680714befe8c75c2006a838a2055780a
1 /* { dg-options "-Wstrict-aliasing" } */
2 /* PR c++/97990 */
3 /* This used to crash with lto and strict aliasing enabled as the
4    vector type variant still had TYPE_ALIAS_SET set on it. */
6 typedef __attribute__((__vector_size__(sizeof(short)))) short TSimd;
7 TSimd hh(int);
8 struct y6
10   TSimd VALUE;
11   ~y6();
13 template <class T1,class T2>
14 auto f2(T1 p1, T2){
15   return hh(p1) <= 0;
17 void f1(){
18   f2(0, y6{});