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