repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr64995.C
blob
f2e1b1b3748307299590d417441d6a92143eba3e
1
// { dg-do compile }
2
3
extern "C" double acos(double);
4
class A {
5
public:
6
double mY, mZ;
7
A(double, double);
8
double m_fn1(A *);
9
int *m_fn2();
10
};
11
double a;
12
A *b;
13
A::A(double, double) : mY(), mZ() {}
14
15
double A::m_fn1(A *) { return mY * mZ; }
16
17
inline int *A::m_fn2() {
18
mZ = 0;
19
double c = m_fn1(this);
20
a = acos(c);
21
double d = m_fn1(b);
22
acos(d);
23
return 0;
24
}
25
26
void passTime() {
27
A e(0, 1);
28
e.m_fn2();
29
}