PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1z / constexpr-if19.C
blob40016a5b7e1176bda81e4d1e2c3e7ddc92e3d2de
1 // PR c++/85200
2 // { dg-additional-options -std=c++17 }
4 struct A{
5     constexpr operator int(){ return 0; }
6 };
8 template < typename >
9 void f(){
10     [](auto known){
11         if constexpr(constexpr int k = known);
12     }(A{});
15 int main(){
16     f<int>();