PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / pr59635.C
blob9af99397dc7626f372ae08ba097007744ab4fbd0
1 // PR c++/59635
2 // { dg-do compile { target c++14 } }
4 auto f = [] (auto, ...) { return 0; };
6 int (*p) (int, ...) = f;  // { dg-message "unimplemented" }