Skip to content

Commit 6e4c314

Browse files
committed
init [skip ci]
1 parent 7ac8753 commit 6e4c314

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

debug/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ add_test(NAME BoundsFail COMMAND badbounds)
99

1010
add_executable(nanmaxmin maxmin_nan.f90)
1111

12+
add_executable(typecast typecast.f90)

debug/typecast.f90

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
program typec
2+
!! What happens when variables of one type are assigned to another type
3+
4+
implicit none
5+
6+
logical :: x,y,z
7+
8+
x = 12343
9+
y = 0
10+
z = -1
11+
12+
print *, '12343: true',x
13+
print *, '0: false',y
14+
print *, '-1: true', z
15+
16+
end program

0 commit comments

Comments
 (0)