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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [vect/] [pr22543.cc] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
struct A
4
{
5
  int i, j;
6
 
7
  A() : i(), j() {}
8
  ~A() {}
9
 
10
  operator int() { return 0; }
11
};
12
 
13
struct B
14
{
15
  A foo() const { return A(); }
16
};
17
 
18
struct X { ~X(); };
19
 
20
struct C
21
{
22
  C();
23
 
24
  int z[4];
25
};
26
 
27
C::C()
28
{
29
  for (int i=0; i<4; ++i)
30
    z[i]=0;
31
 
32
  X x;
33
 
34
  for (int i=0; i<4; ++i)
35
    int j = B().foo();
36
}
37
 
38
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

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