Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
gen-attrs-31.C
blob: ab58e6e2b27c09cb4282749d5cf21d50cd4f4125 [
file
] [
log
] [
blame
]
// PR c++/35097
// { dg-do compile { target c++11 } }
template
<int>
struct
A
;
template
<>
struct
A
<
0
>
{
typedef
int
X
[[
gnu
::
aligned
(
4
)]];
};
template
<
typename
T
>
void
foo
(
const
A
<
0
>::
X
&,
T
);
void
bar
()
{
foo
(
A
<
0
>::
X
(),
0
);
}