1// { dg-do compile } 2#include <typeinfo> 3#include <iostream> 4 5struct foo { double f(int); }; 6 7int main() { 8 double f (int); 9 const std::type_info &r = typeid (f); 10 std::cout << typeid(f).name() << std::endl; 11 std::cout << typeid(foo::f).name() << std::endl; /* { dg-error "" } */ 12} 13