2 // { dg-do compile { target c++11 } }
3 // DR1688 says that constexpr can be used together with volatile.
5 constexpr volatile int i = 10;
10 constexpr volatile int j = 5;
11 static constexpr volatile int k = 5;
14 constexpr volatile int // { dg-warning "deprecated" "" { target c++2a } }
17 return i; // { dg-error "lvalue-to-rvalue conversion of a volatile lvalue" "" { target c++20_down } }