PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gnat.dg / pure_subp_body.adb
blob31bf1061d08f8e481729ace3f6c144f47a5b4bc4
1 -- { dg-do compile }
3 with Pure_Subp_Body_Pkg;
5 procedure Pure_Subp_Body with Pure is
6 begin
7 null;
8 end Pure_Subp_Body;
10 -- cannot depend on "Pure_Subp_Body_Pkg" (wrong categorization)
11 -- { dg-error "cannot depend on \"Pure_Subp_Body_Pkg\" \\(wrong categorization\\)" "" { target *-*-* } 3 }
12 -- { dg-error "pure unit cannot depend on non-pure unit" "non-pure unit" { target *-*-* } 3 }