☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-volatile3.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-volatile3.C
code
plain
raw
1
// PR c++/80456
2
// { dg-do compile { target c++11 } }
3
4
struct A {
5
static constexpr bool test() noexcept { return true; }
6
7
void f() volatile {
8
constexpr bool b = test();
9
}
10
};
11
12
void g() {
13
A a;
14
a.f();
15
}