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