mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-08 19:20:44 +08:00
* gnat.dg/specs/sync_iface_test.ads: New test.
From-SVN: r138402
This commit is contained in:
parent
f32b9cd128
commit
37ff8abac0
@ -1,3 +1,7 @@
|
||||
2008-07-31 Arnaud Charlet <charlet@adacore.com>
|
||||
|
||||
* gnat.dg/specs/sync_iface_test.ads: New test.
|
||||
|
||||
2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* gcc.dg/torture/stackalign/pr16660-1.c: Include "check.h".
|
||||
|
14
gcc/testsuite/gnat.dg/specs/sync_iface_test.ads
Normal file
14
gcc/testsuite/gnat.dg/specs/sync_iface_test.ads
Normal file
@ -0,0 +1,14 @@
|
||||
-- { dg-do compile }
|
||||
-- { dg-options "-gnatc" }
|
||||
|
||||
package Sync_Iface_Test is
|
||||
type Iface is limited interface;
|
||||
procedure Do_Test
|
||||
(Container : in out Iface;
|
||||
Process : access procedure (E : Natural)) is abstract;
|
||||
|
||||
protected type Buffer is new Iface with
|
||||
overriding procedure Do_Test
|
||||
(Process : access procedure (E : Natural));
|
||||
end;
|
||||
end;
|
Loading…
x
Reference in New Issue
Block a user