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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
 
3
struct A
4
{
5
    double d[2];
6
    double foo(int i) { return d[i]; }
7
};
8
 
9
struct B : public A {};
10
 
11
void bar(B& b)
12
{
13
    for (int i=0; i<2; ++i)
14
        b.d[i] = b.foo(i);
15
}
16
 
17
/* { dg-final { cleanup-tree-dump "vect" } } */
18
 

powered by: WebSVN 2.1.0

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