mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-10 17:07:06 +00:00
cf99abbc4e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120161 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
343 B
Fortran
19 lines
343 B
Fortran
! 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
|