blob: 7391405fcd92f916cadc704ae003cfbdf7ad1b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// PR c++/32260
// { dg-do compile }
// { dg-options "-O2 -W -Wall" }
#include <typeinfo>
const std::type_info &
f1 (int i)
{
return typeid (i + 1);
}
const std::type_info &
f2 ()
{
return typeid (int);
}
struct A
{
A ();
virtual ~A ();
void foo ();
};
const std::type_info &
f3 ()
{
return typeid (A);
}
const std::type_info &
f4 (A *p)
{
return typeid (*p);
}
const std::type_info &
f5 ()
{
return typeid (int *);
}
const std::type_info &
f6 ()
{
return typeid (int [26][12]);
}
const std::type_info &
f7 ()
{
return typeid (int [26][12]);
}
void (A::*pmr) ();
const std::type_info &
f8 ()
{
return typeid (pmr);
}
|