Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-56302.C
blob: 945bf020f0ebb139adfe86fa34529d2292b18763 [
file
] [
log
] [
blame
]
// PR c++/56302
// { dg-do compile { target c++11 } }
// { dg-options "-O0" }
constexpr
int
foo
()
{
return
42
;
}
constexpr
int
x
=
foo
()
+
2
;
void
bar
()
{
__asm
(
""
:
:
"n"
(
x
),
"n"
(
foo
()
*
7
+
x
));
}