c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / local10.C
blob9a70b846ff3cad62017dd5f5f8dda51e58101a90
1 // PR c++/109658
3 template <typename OutputStream> void encode(OutputStream, int *) {
4   struct ValueBaseVisitor {
5     void visit() { encodeString(); }
6     void encodeString() {}
7   };
9 int encode_json;
10 void encode_out() { encode(encode_out, &encode_json); }