☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-110619.C
☽
☼
gcc/testsuite/g++.dg/cpp1y/constexpr-110619.C
code
plain
raw
1
// { dg-do compile { target c++14 } }
2
// { dg-options "-Wno-return-local-addr" }
3
// PR c++/110619
4
5
constexpr auto f() {
6
int i = 0;
7
return &i;
8
};
9
10
static_assert( f() != nullptr );