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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr51262.C
blob
d0e8d781262f3869ed34eff6a022730ee2dd2c02
1
// { dg-do compile }
2
// { dg-require-effective-target lto }
3
// { dg-options "-flto -g" }
4
5
template < typename > void *
6
bar (int *p)
7
{
8
union
9
{
10
int *p;
11
}
12
u;
13
u.p = p;
14
return u.p;
15
}
16
17
void
18
foo (int *p)
19
{
20
bar < void >(p);
21
}