Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/opt25.adb @ 127:4c56639505ff
fix function.c and add CbC-example Makefile
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 18:46:58 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
-- { dg-do compile } -- { dg-options "-O" } with Opt25_Pkg1; with Opt25_Pkg2; procedure Opt25 (B1, B2 : in out Boolean) is package Local_Pack_Instance is new Opt25_Pkg1 (Boolean, True); package Local_Stack is new Opt25_Pkg2 (Integer, 0); S : Local_Stack.Stack := Local_Stack.Default_Stack; begin Local_Pack_Instance.Swap (B1, B2); end;