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/] [typename19.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// { dg-options "" }
3
// Origin: Mark Mitchell 
4
 
5
template 
6
struct O {
7
  typedef char X;
8
};
9
 
10
template 
11
struct S {
12
  typedef double X;
13
 
14
  template 
15
  struct I : public O {
16
    static X x;
17
  };
18
};
19
 
20
template 
21
template 
22
typename S::X S::I::x;
23
 
24
int main()
25
{
26
  return sizeof (S::I::x) == 1;
27
}

powered by: WebSVN 2.1.0

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