Debian Codegraph @

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

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 }