cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
16 lines
520 B
Fortran
16 lines
520 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
! C1108 -- Save statement in a BLOCK construct shall not conatin a
|
|
! saved-entity-list that does not specify a common-block-name
|
|
|
|
program main
|
|
integer x, y, z
|
|
real r, s, t
|
|
common /argmnt2/ r, s, t
|
|
!ERROR: 'argmnt1' appears as a COMMON block in a SAVE statement but not in a COMMON statement
|
|
save /argmnt1/
|
|
block
|
|
!ERROR: SAVE statement in BLOCK construct may not contain a common block name 'argmnt2'
|
|
save /argmnt2/
|
|
end block
|
|
end program
|