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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// Source: Neil Booth, from PR # 106. 4 Dec 2000.
3
 
4
template  class bar
5
{
6
};
7
 
8
class A_a
9
{
10
  public:
11
   static const bool b = true;
12
};
13
 
14
class B_b
15
{
16
  public:
17
   static const bool b = false;
18
};
19
 
20
template  class foo
21
{
22
};
23
 
24
template 
25
bar<(A::b || B::b)> do_funky(const foo&);
26
 
27
int main()
28
{
29
  bar a_bar = do_funky(foo());
30
}

powered by: WebSVN 2.1.0

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