Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
alignas8.C
blob: bd76233f4ad5e66aa4d34bf6c759d381398a7f25 [
file
] [
log
] [
blame
]
// PR c++/79380
// { dg-do compile { target c++11 } }
template
<
typename
>
constexpr
int
f
()
{
return
8
;
}
// should have been: struct alignas (f<int>()) S {};
struct
alignas
(
f
)
S
{};
// { dg-error "17:'alignas' argument has non-integral type" }