blob: 1cc5780416f195cf5d6a0cc7bf51e77b52beb788 [file] [log] [blame]
// Testcase from P0292R2
// { dg-do link { target c++11 } }
// { dg-options "" }
extern int x; // no definition of x required
int main() {
if constexpr (true) // { dg-warning "constexpr" "" { target c++14_down } }
return 0;
else if (x)
return x;
else
return -x;
}