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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [mem-partial2.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/14032
2
// { dg-do run }
3
 
4
template 
5
struct outer
6
{
7
  template 
8
  struct inner           // unspecialized compare != compare_with
9
  {
10
    static inline bool test()
11
    {
12
      return false;
13
    }
14
  };
15
  template  // specialization compare == compare_with
16
  struct inner
17
  {
18
    static inline bool test()
19
    {
20
      return true;
21
    }
22
  };
23
};
24
int main ()
25
{
26
  bool b = outer::inner::test();
27
 
28
  return b != true;
29
}

powered by: WebSVN 2.1.0

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