25 lines · plain
1! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic2 3! Test check that enforce that a common block is initialized4! only once in a file.5 6subroutine init_17 common x, y8 common /a/ xa, ya9 common /b/ xb, yb10 !WARNING: Blank COMMON object 'x' in a DATA statement is not standard [-Wdata-stmt-extensions]11 data x /42./, xa /42./, yb/42./12end subroutine13 14subroutine init_conflict15 !ERROR: Multiple initialization of COMMON block //16 common x, y17 !ERROR: Multiple initialization of COMMON block /a/18 common /a/ xa, ya19 common /b/ xb, yb20 equivalence (yb, yb_eq)21 !WARNING: Blank COMMON object 'x' in a DATA statement is not standard [-Wdata-stmt-extensions]22 !ERROR: Multiple initialization of COMMON block /b/23 data x /66./, xa /66./, yb_eq /66./24end subroutine25