Debian Codegraph @

gcc/testsuite/g++.dg/torture/vector-struct-1.C

raw
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. */
5
6 typedef __attribute__((__vector_size__(sizeof(short)))) short TSimd;
7 TSimd hh(int);
8 struct y6
9 {
10 TSimd VALUE;
11 ~y6();
12 };
13 template <class T1,class T2>
14 auto f2(T1 p1, T2){
15 return hh(p1) <= 0;
16 }
17 void f1(){
18 f2(0, y6{});
19 }