Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-value3.C
blob: 8fd9c744536d534ba4cb1e651f68c9a829be0435 [
file
] [
log
] [
blame
]
// PR c++/50234
// { dg-do compile { target c++11 } }
#define
SA
(
X
)
static_assert
((
X
),#
X
)
struct
A
{
int
i
;
};
constexpr
int
f
(
A a
)
{
return
a
.
i
;
}
SA
(
f
({})
==
0
);