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
[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lto
/
pr54625-2_1.C
blob
09c365d2354e92e8119dd1a6d4661e0d733bee74
1
extern "C" double sin (double);
2
typedef double (*UnaryFunType) (double);
3
class A
4
{
5
public:
6
int hash ();
7
void lookup (UnaryFunType p1)
8
{
9
int a = hash ();
10
p1 (0);
11
}
12
};
13
A b, c;
14
void
15
math_sin_impl ()
16
{
17
b.lookup (sin);
18
}
19
20
void
21
js_math_sqrt ()
22
{
23
c.lookup (0);
24
}