aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/constexpr-nonlit7.C
blob: 06125756f25c315b47d7b40d60d4220f7588022e (plain)
1
2
3
4
5
6
// PR c++/104994
// CWG2552
// { dg-do compile { target c++14 } }

constexpr bool foo () { extern thread_local int t; return true; }
static constexpr bool a = foo ();