Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/pr77539.C

raw
1 // PR c++/77539
2 // { dg-do compile { target c++14 } }
3
4 constexpr int foobar()
5 {
6 int array[100] = {};
7 int *ar = array;
8 if (ar == nullptr) // Error...
9 {
10 return 0;
11 }
12 return 1;
13 }
14 static_assert(foobar(),"");