// Test typeof template argument substitution // Copyright (C) 2001 Free Software Foundation // Contributed by Kriang Lerdsuwanakij // { dg-do compile } // { dg-options "" } template struct A { void f() {} void g(T* t) { A a; a.f(); } }; int main() { A a; int b; a.g(&b); }