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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr42987_0.C
blob
e422daa69e7e93700fd70fc41d2f2ade9daa1c11
1
// { dg-lto-do run }
2
// { dg-lto-options { { -flto -g } { -flto -flto-partition=none -g } } }
3
4
#include <typeinfo>
5
6
struct B {
7
virtual void b() {}
8
};
9
10
static B* f() {
11
struct D : public B {
12
};
13
14
return new D;
15
}
16
17
extern B* g();
18
19
int main () {
20
if (typeid (*f()) == typeid (*g()))
21
return 1;
22
}