xref: /llvm-project/flang/test/Semantics/data14.f90 (revision 1c91d9bdea3b6c38e8fbce46ec8181a9c0aa26f8)
1! RUN: %flang_fc1 -fsyntax-only -pedantic %s 2>&1 | FileCheck %s
2! Verify varnings on nonconforming DATA statements
3! As a common extension, C876 violations are not errors.
4program main
5  type :: seqType
6    sequence
7    integer :: number
8  end type
9  type(seqType) :: x
10  integer :: j
11  common j, x, y
12  !CHECK: Blank COMMON object 'j' in a DATA statement is not standard
13  data j/1/
14  !CHECK: Blank COMMON object 'x' in a DATA statement is not standard
15  data x%number/2/
16end
17