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