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/] [pr21734_2.cc] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
struct A
4
{
5
  int a[4];
6
  int* operator[](int i) { return &a[i]; }
7
};
8
 
9
void foo(A a1, A &a2)
10
{
11
  a1[1][1]=0;
12
  for (int i=0; i<4; ++i)
13
    a2.a[i]=0;
14
}
15
 
16
/* { 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.