Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-56302.C

raw
1 // PR c++/56302
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O0" }
4
5 constexpr int foo () { return 42; }
6 constexpr int x = foo () + 2;
7
8 void
9 bar ()
10 {
11 __asm ("" : : "n" (x), "n" (foo () * 7 + x));
12 }