We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae3e03 commit 18bba73Copy full SHA for 18bba73
test/nullptr/main.f90
@@ -19,6 +19,9 @@ function nullchar(b) bind(C)
19
20
type(c_ptr) :: ptr
21
22
+!> Don't use c_associated to check uninitialized pointers, will give errors or unexpected behavior.
23
+!! if (c_associated(ptr))
24
+
25
if (.not. c_associated(nullchar(f))) error stop "nullptr should not be detected"
26
27
ptr = nullchar(t)
0 commit comments