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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [array19.C] - Blame information for rev 700

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

Line No. Rev Author Line
1 693 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.