]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gnat.dg/specs/task1.ads: New test.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 3 Mar 2016 09:56:30 +0000 (09:56 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 3 Mar 2016 09:56:30 +0000 (09:56 +0000)
From-SVN: r233932

gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/task1.ads [new file with mode: 0644]

index 159491177232915eaf142e77cf8828349d1b9b56..93919a086813bccc87f3250ce1e59d130a87e3c1 100644 (file)
@@ -1,3 +1,7 @@
+2016-03-03  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gnat.dg/specs/task1.ads: New test.
+
 2016-03-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * lib/gcc-gdb-test.exp (gdb-test): Make log message match command.
diff --git a/gcc/testsuite/gnat.dg/specs/task1.ads b/gcc/testsuite/gnat.dg/specs/task1.ads
new file mode 100644 (file)
index 0000000..c108d29
--- /dev/null
@@ -0,0 +1,16 @@
+-- { dg-do compile }
+-- { dg-options "-gnatct" }
+
+package Task1 is
+
+   type Cable_Task_1 (C : Boolean) is limited private;
+
+   type Cable_Rec is limited record
+      Tsk_1 : Cable_Task_1 (C => False);
+   end record;
+
+private
+   task type Cable_Task_1 (C : Boolean) is
+end Cable_Task_1;
+
+end Task1;