Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
alignof5.C
blob: 09354d3e1d012fed88768c77999f7e9fe10b2310 [
file
] [
log
] [
blame
]
// PR c++/90736 - bogus error with alignof.
// { dg-do compile { target c++11 } }
constexpr
int
fn
(
const
int
b
)
{
return
b
;
}
constexpr
int
c
=
fn
(
alignof
(
int
));
alignas
(
c
)
char
d
;