Skip to content

Commit 75cec79

Browse files
committed
Update test as per W214-017
Change-Id: I5e5bab58ee3aed9391b69982c71e0319358c5d08
1 parent a253062 commit 75cec79

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

testsuite/tests/checks/representation_specifications/repr.ads

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ package Repr is
99
type State_Mask is array (State) of Boolean -- FLAG
1010
with Component_Size => 1;
1111

12+
type State_Mask2 is new State_Mask; -- NO FLAG
13+
1214
Var : Integer; -- FLAG
1315
pragma Volatile (Var);
1416

testsuite/tests/checks/representation_specifications/test.out

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ repr.ads:9:4: rule violation: declaration with a representation aspect
1212
10 || with Component_Size => 1;
1313
||______________________________^
1414

15-
repr.ads:12:4: rule violation: declaration with a representation aspect
16-
12 | Var : Integer; -- FLAG
15+
repr.ads:14:4: rule violation: declaration with a representation aspect
16+
14 | Var : Integer; -- FLAG
1717
| ^^^^^^^^^^^^^^
1818

19-
repr.ads:15:4: rule violation: declaration with a representation aspect
20-
15 | function F return Boolean with No_Return; -- FLAG
19+
repr.ads:17:4: rule violation: declaration with a representation aspect
20+
17 | function F return Boolean with No_Return; -- FLAG
2121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2222

23-
repr.ads:17:4: rule violation: declaration with a representation aspect
24-
17 | function F2 return Boolean; -- FLAG
23+
repr.ads:19:4: rule violation: declaration with a representation aspect
24+
19 | function F2 return Boolean; -- FLAG
2525
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626

0 commit comments

Comments
 (0)