[gcn] install.texi: Update for new ISA targets and their requirements
[gcc.git] / gcc / testsuite / g++.dg / cpp23 / constexpr-nonlit13.C
blob7997e8e2c3c6670521bbea0e3a04ec388e0ca146
1 // PR c++/106649
2 // P2448 - Relaxing some constexpr restrictions
3 // { dg-do compile { target c++23 } }
4 // { dg-options "-Winvalid-constexpr" }
6 constexpr volatile int i = 10;
8 constexpr int
9 bar ()
11   return i;  // { dg-warning "lvalue-to-rvalue conversion of a volatile lvalue" }
14 constexpr int x = bar (); // { dg-error "called in a constant expression" }