OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gcc/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
enum2.C
1
// { dg-do assemble }
2
3
struct U {
4
static int STATIC;
5
};
6
7
template <int* x> class FOO {
8
public:
9
enum { n = 0 };
10
};
11
12
template <class A> class BAR {
13
public:
14
enum { n = FOO<&A::STATIC>::n };
15
};
16
17
int n = BAR<U>::n;