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
2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
tmplattr9.C
blob
090257a5f9194c6795a73b2f4498a1965e7af338
1
// PR c++/34937, 34962
2
// { dg-require-weak "" }
3
// { dg-options "" }
4
5
struct A
6
{
7
static const int i;
8
};
9
10
template<int> void foo()
11
{
12
int x[A::i] __attribute((vector_size(8)));
13
}
14
15
template<int> struct B
16
{
17
enum { a, b = a };
18
void bar(B<b>) __attribute((weak));
19
};
20
21
void f()
22
{
23
foo<0>();
24
B<0> b;
25
b.bar (B<B<0>::b>());
26
}