1-- { dg-do compile } 2 3with Layered_Abstraction_P; 4with layered_abstraction; 5procedure layered_instance is 6 package s1 is new Layered_Abstraction_P (Integer, 15); 7 package S2 is new Layered_Abstraction_P (Integer, 20); 8 package Inst is new layered_abstraction (S1, S2); 9begin 10 null; 11end; 12