Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-stmtexpr2.C
blob: 34ca9fa997455bf9403d45f16b8d30d223e8e951 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
// { dg-options "" }
#define
SA
(
X
)
static_assert
((
X
),#
X
)
template
<
class
T
>
constexpr
T f
(
T t
)
{
return
({
t
+
1
;
});
}
SA
(
f
(
42
)
==
43
);