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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [array19.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/33553
2
// { dg-do compile }
3
 
4
template  struct S { static const int sz = 2; };
5
template  struct U { enum { sz = 2 }; };
6
 
7
template 
8
struct P
9
{
10
  template  void bar (int (&x)[S::sz]);
11
  template  void baz (int (&x)[U::sz]);
12
};
13
 
14
P p;
15
 
16
void
17
foo (void)
18
{
19
  int x[2];
20
  p.bar (x);
21
  p.baz (x);
22
}

powered by: WebSVN 2.1.0

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