Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);