PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef17.C
blob263e28886f990a2b6f3d688feb35f1df6cdb6470
1 // PR c++/37806
3 extern "C" int printf (const char *, ...);
5 template <typename T>
6 struct S1
8   typedef void (function_type)(int) const;
9 };
12 struct S2: public S1<int>
14   virtual function_type f = 0;
17 struct S3: public S2
19   void 
20   f (int i) const
21   {
22     printf ("Hello world: %d\n", i);
23   }
27 int
28 main()
30   S3 s;
31   s.f(5);