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
/
complex5.C
blob
0da0738b327eb318d2febe7eda759d8046fe960e
1
// PR 24365
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
5
typedef __complex__ double cdouble;
6
inline cdouble to_complex(double r) {
7
cdouble z;
8
__real__ z = r;
9
return z;
10
}
11
cdouble elt_zero() {
12
cdouble a = to_complex(0.0);
13
a+=1.0;
14
return a;
15
}
16