OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gcc/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
builtins-52.c
1
/* { dg-do link } */
2
/* { dg-options "-ffast-math" } */
3
4
extern void link_error(void);
5
6
void test(double x, int n)
7
{
8
if (__builtin_powi(x,-1.0) != 1.0/x)
9
link_error ();
10
if (__builtin_powi(x,0.0) != 1.0)
11
link_error ();
12
if (__builtin_powi(x,1.0) != x)
13
link_error ();
14
if (__builtin_powi(1.0,n) != 1.0)
15
link_error ();
16
}
17
18
int main()
19
{
20
test(7.3, 2);
21
return 0;
22
}
23