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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb11.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
 
3
template
4
struct meta_max {
5
    enum { max = (N1 > N2) ? N1 : N2 };
6
};
7
 
8
struct X {
9
    enum {
10
       a = 0,
11
       n = 0
12
    };
13
};
14
 
15
template
16
struct Y {
17
 
18
    enum {
19
       a = T1::a + T2::a,
20
 
21
       // NB: if the next line is changed to
22
       // n = (T1::n > T2::n) ? T1::n : T2::n
23
       // the problem goes away.
24
 
25
       n = meta_max::max
26
    };
27
};
28
 
29
int z = Y::a;

powered by: WebSVN 2.1.0

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