aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendFortran/cpow.f90
blob: 25156fd5897156d30aac69f39f3883eb8f66114b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! RUN: %llvmgcc -S %s
! PR2443

! Program to test the power (**) operator
program testpow
   implicit none
   real(kind=4) r, s, two
   real(kind=8) :: q
   complex(kind=4) :: c, z
   real, parameter :: del = 0.0001
   integer i, j

   two = 2.0

   c = (2.0, 3.0)
   c = c ** two
   if (abs(c - (-5.0, 12.0)) .gt. del) call abort
end program