OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr36444.C] - Blame information for rev 307

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
/* { 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(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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.