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
new
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
static3.C
1
// On targets that don't support weak symbols, we require an explicit
2
// instantiation of arr.
3
// excess errors test - XFAIL *-*-aout *-*-coff *-*-hpux* alpha-dec-osf*
4
5
template<class T>
6
struct A {
7
static T arr[5];
8
};
9
10
template <class T>
11
T A<T>::arr[5] = { 0, 1, 2, 3, 4 };
12
13
int main ()
14
{
15
return A<int>::arr[0];
16
}