Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }