summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/variant_part.ads
blob: afc92cde5d700a3ab2a385e962496db7db659f70 (plain)
1
2
3
4
5
6
7
8
-- { dg-do compile }
package Variant_Part is
   type T1(b: boolean) is record
     case (b) is    -- { dg-error "discriminant name may not be parenthesized" }
        when others => null;
     end case;
   end record;
end Variant_Part;