diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/no_exc_prop.adb')
-rw-r--r-- | gcc/testsuite/gnat.dg/no_exc_prop.adb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/no_exc_prop.adb b/gcc/testsuite/gnat.dg/no_exc_prop.adb new file mode 100644 index 000000000..68e2b1d21 --- /dev/null +++ b/gcc/testsuite/gnat.dg/no_exc_prop.adb @@ -0,0 +1,15 @@ +-- { dg-do compile } +-- { dg-options "-gnatwa" } + +package body no_exc_prop is + protected body Simple_Barrier is + entry Wait when Signaled is + begin + Signaled := False; + end Wait; + procedure Signal is + begin + Signaled := True; + end Signal; + end Simple_Barrier; +end no_exc_prop; |