☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-56302.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-56302.C
code
plain
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
}