You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
343 B
9 lines
343 B
4 months ago
|
!RUN: %f18 -E %s 2>&1 | FileCheck %s
|
||
|
!CHECK: if(.not.(.true.)) error stop "assert(" // ".TRUE." // ") failed " // "at ""
|
||
|
!CHECK-SAME: assert.F90"": " // "7"
|
||
|
#define STR(x) #x
|
||
|
#define POSITION(f,ln) "at "f": " // STR(ln)
|
||
|
#define assert(x) if(.not.(x)) error stop "assert(" // #x // ") failed " // POSITION(__FILE__,__LINE__)
|
||
|
assert(.TRUE.)
|
||
|
end
|