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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [vect/] [pr21734_1.cc] - Blame information for rev 749

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

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