Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.6.0
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-noexcept3.C
blob: 6e76ea8fa0b5519f7f12f6cf45e0734ab005886d [
file
] [
log
] [
blame
]
// { dg-options -std=c++0x }
constexpr
int
f
(
int
i
)
{
return
i
;
}
#define
SA
(
X
)
static_assert
(
X
,
#X)
SA
(
noexcept
(
f
(
42
)));
int
j
;
SA
(!
noexcept
(
f
(
j
)));