1 // PR c++/80456
2 // { dg-do compile { target c++11 } }
3 
4 struct A {
testA5   static constexpr bool test() noexcept { return true; }
6 
fA7   void f() volatile {
8     constexpr bool b = test();
9   }
10 };
11 
g()12 void g() {
13   A a;
14   a.f();
15 }
16