Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/typedef17.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/37806 extern "C" int printf (const char *, ...); template <typename T> struct S1 { typedef void (function_type)(int) const; }; struct S2: public S1<int> { virtual function_type f = 0; }; struct S3: public S2 { void f (int i) const { printf ("Hello world: %d\n", i); } }; int main() { S3 s; s.f(5); }