PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / warn11.adb
blobe92835f0533c03b84c75ddc2f7087a4266e06f3a
1 -- { dg-do compile }
3 with Ada.Text_IO; use Ada.Text_IO;
5 procedure Warn11 is
7 type My_Integer is new Integer range 1 .. 10;
8 for My_Integer'Size use 65; -- { dg-warning "unused" }
10 type My_Integer2 is new Integer range 1 .. 10;
11 for My_Integer2'Size use 129; -- { dg-warning "unused" }
13 begin
14 Put_Line ("MB'Size is " & Natural'Image (My_Integer'Size));
15 Put_Line ("MB'Size is " & Natural'Image (My_Integer2'Size));
16 end;