PR c++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / var-templ29.C
blob22f5b0bc093b66ab9f3b3abe66519afaf1267239
1 // PR c++/65719
2 // { dg-do link { target c++14 } }
4 struct FunctionObject {
5     void operator()() const { }
6 };
8 template <typename T>
9 constexpr FunctionObject f{};
11 int main() {
12     f<int>();