blob: e11e02cfa0eb0851b2934077408bb2dbb5988186 [file] [log] [blame]
// PR c++/105885
// { dg-do compile { target c++17 } }
// { dg-additional-options -Wall }
int i;
template<const char* ARG = nullptr>
void test() {
if constexpr(ARG == nullptr) {
++i;
} else {
--i;
}
}
const char CONSTSTR[] = {'\n', '\t', ' ', '\0'};
int main() {
test();
test<CONSTSTR>();
}