From 75cec794bacac95cd20906998872ca484f728346 Mon Sep 17 00:00:00 2001 From: Arnaud Charlet Date: Tue, 14 Mar 2023 08:36:14 +0000 Subject: [PATCH] Update test as per W214-017 Change-Id: I5e5bab58ee3aed9391b69982c71e0319358c5d08 --- .../checks/representation_specifications/repr.ads | 2 ++ .../checks/representation_specifications/test.out | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/testsuite/tests/checks/representation_specifications/repr.ads b/testsuite/tests/checks/representation_specifications/repr.ads index 710245c5a..27a0ebec1 100644 --- a/testsuite/tests/checks/representation_specifications/repr.ads +++ b/testsuite/tests/checks/representation_specifications/repr.ads @@ -9,6 +9,8 @@ package Repr is type State_Mask is array (State) of Boolean -- FLAG with Component_Size => 1; + type State_Mask2 is new State_Mask; -- NO FLAG + Var : Integer; -- FLAG pragma Volatile (Var); diff --git a/testsuite/tests/checks/representation_specifications/test.out b/testsuite/tests/checks/representation_specifications/test.out index c8a6832e5..1cd96c5aa 100644 --- a/testsuite/tests/checks/representation_specifications/test.out +++ b/testsuite/tests/checks/representation_specifications/test.out @@ -12,15 +12,15 @@ repr.ads:9:4: rule violation: declaration with a representation aspect 10 || with Component_Size => 1; ||______________________________^ -repr.ads:12:4: rule violation: declaration with a representation aspect -12 | Var : Integer; -- FLAG +repr.ads:14:4: rule violation: declaration with a representation aspect +14 | Var : Integer; -- FLAG | ^^^^^^^^^^^^^^ -repr.ads:15:4: rule violation: declaration with a representation aspect -15 | function F return Boolean with No_Return; -- FLAG +repr.ads:17:4: rule violation: declaration with a representation aspect +17 | function F return Boolean with No_Return; -- FLAG | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -repr.ads:17:4: rule violation: declaration with a representation aspect -17 | function F2 return Boolean; -- FLAG +repr.ads:19:4: rule violation: declaration with a representation aspect +19 | function F2 return Boolean; -- FLAG | ^^^^^^^^^^^^^^^^^^^^^^^^^^^