Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi-defer1.C
blob: e1b9d69290f990ff7436769957a63a5d0cf32a5a [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
#define
SA
(
X
)
static_assert
(
X
,#
X
)
struct
A
{
int
i
=
f
();
int
j
{
f
()
};
static
constexpr
int
f
()
{
return
42
;
}
};
constexpr
A a
;
SA
(
a
.
i
==
42
);
SA
(
a
.
j
==
42
);