repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
typeid1.C
blob
ec5156e0cd0bcba2d9599980b494258bb6693710
1
// { dg-do compile }
2
#include <typeinfo>
3
#include <iostream>
4
5
struct foo { double f(int); };
6
7
int 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
}