Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/var-templ63.C

raw
1 // PR c++/91740 - ICE with constexpr call and ?: in ARRAY_REF.
2 // { dg-do compile { target c++14 } }
3
4 constexpr bool f(const char*) { return true; }
5 template<typename T> const char c = "FOO"[f("BAR") ? 1 : 0];