blob: 945bf020f0ebb139adfe86fa34529d2292b18763 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// 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));
}
|