OSDN Git Service

PR rtl-optimization/40924
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / torture / pr36444.C
1 /* { dg-do compile } */
2 #define vector __attribute__((vector_size(16) ))
3 struct struct1  {
4   union {}    vmx;
5   struct struct2   {
6     struct2(const struct2& r) {}
7   } w;
8 } __attribute__((aligned(16)));
9 struct struct3  {
10   vector float vmx;
11   operator const struct1& () const{
12     return *reinterpret_cast<const struct1*>(this);
13   }
14 };
15 struct3 func3( struct3 V1);
16 struct3 func2( void );
17 void func1( )  {
18   struct1 vVec = func2() ;
19   func3 ( (struct3&)vVec );
20 }
21