aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/typeid1.C
blob: f6cd45bc66420d82daddc3d3a2d94579e8e6bbee (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <typeinfo>
#include <iostream.h>

struct foo { double f(int); };

int main() {
  double f (int);
  const std::type_info &r = typeid (f);
  cout << typeid(f).name() << endl;
  cout << typeid(foo::f).name() << endl;
}