runtime: copy more of scheduler from Go 1.7 runtime
[official-gcc.git] / gcc / testsuite / gnat.dg / opt25.adb
blob5046d16e3a6e23d2d072b627c7f2b08af21f5511
1 -- { dg-do compile }
2 -- { dg-options "-O" }
4 with Opt25_Pkg1;
5 with Opt25_Pkg2;
7 procedure Opt25 (B1, B2 : in out Boolean) is
9 package Local_Pack_Instance is new Opt25_Pkg1 (Boolean, True);
11 package Local_Stack is new Opt25_Pkg2 (Integer, 0);
13 S : Local_Stack.Stack := Local_Stack.Default_Stack;
15 begin
16 Local_Pack_Instance.Swap (B1, B2);
17 end;