Skip to content

Commit 64fec82

Browse files
committed
c_associated newly declared
1 parent 2ae3e03 commit 64fec82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/nullptr/main.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ function nullchar(b) bind(C)
1919

2020
type(c_ptr) :: ptr
2121

22+
if (c_associated(ptr)) error stop "nullptr should not be c_associated"
23+
2224
if (.not. c_associated(nullchar(f))) error stop "nullptr should not be detected"
2325

2426
ptr = nullchar(t)

0 commit comments

Comments
 (0)