repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
static3.C
blob
5a638b1f7ad263254c274e7727515c0240752dab
1
// { dg-do run }
2
// On targets that don't support weak symbols, we require an explicit
3
// instantiation of arr.
4
// { dg-require-weak "" }
5
6
template<class T>
7
struct A {
8
static T arr[5];
9
};
10
11
template <class T>
12
T A<T>::arr[5] = { 0, 1, 2, 3, 4 };
13
14
int main ()
15
{
16
return A<int>::arr[0];
17
}