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
[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr54625-1_1.C
blob
3d5f05e361d5246301ce864806cc038c451256a9
1
extern "C" double sin (double);
2
typedef double UnaryFunType (double);
3
#pragma GCC diagnostic ignored "-Wreturn-type"
4
class A
5
{
6
public:
7
int hash ();
8
double lookup (UnaryFunType p1)
9
{
10
int a = hash ();
11
if (p1)
12
return 0;
13
}
14
};
15
A b;
16
void
17
math_sin_impl ()
18
{
19
b.lookup (sin);
20
}