aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/consteval19.C
blob: d742f59070f4e0e81022f60a04ff0e54e6235b64 (plain)
1
2
3
4
5
6
// PR c++/99507
// { dg-do compile { target c++20 } }

constexpr int i{0};
consteval const int &iref () { return i; }
const int *a{&iref ()};