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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
template 
4
struct V {
5
  T& operator[](int);
6
};
7
 
8
struct S {
9
  S operator +(int);
10
  template  T value();
11
};
12
 
13
template 
14
void R (T v)
15
{
16
  v[(S() + 0).template value()][0] = 0;
17
}
18
 
19
int
20
main ()
21
{
22
  R(V >());
23
}

powered by: WebSVN 2.1.0

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