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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
gen-attrs-31.C
blob
ab58e6e2b27c09cb4282749d5cf21d50cd4f4125
1
// PR c++/35097
2
// { dg-do compile { target c++11 } }
3
4
template<int> struct A;
5
6
template<> struct A<0>
7
{
8
typedef int X [[gnu::aligned(4)]];
9
};
10
11
template<typename T> void foo(const A<0>::X&, T);
12
13
void bar()
14
{
15
foo(A<0>::X(), 0);
16
}