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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [vla7.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/40013
2
// { dg-options "" }
3
 
4
template 
5
struct A
6
{
7
  struct B
8
  {
9
    struct
10
    {
11
      int fn () { return 0; }
12
    } b;
13
  };
14
  void test ();
15
};
16
 
17
template 
18
void
19
A ::test ()
20
{
21
  B a;
22
  int vla[a.b.fn ()];
23
}
24
 
25
int
26
main ()
27
{
28
  A  a;
29
  a.test ();
30
}

powered by: WebSVN 2.1.0

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