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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [dynarray.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// { dg-options "" }
3
// Origin: Theo Papadopoulo 
4
 
5
inline const unsigned& f(unsigned const& a) {
6
        return a;
7
}
8
 
9
template 
10
void
11
g(const unsigned n)
12
{
13
        double D[f(n)];
14
}
15
 
16
template 
17
void g(unsigned const int) { }
18
 
19
int main()
20
{
21
        g(18);
22
}

powered by: WebSVN 2.1.0

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