gcc/testsuite/gnat.dg/matrix1.adb
raw| 1 | -- { dg-do run } |
| 2 | -- { dg-options "-gnata" } |
| 3 | |
| 4 | with Ada.Numerics.Generic_Real_Arrays; |
| 5 | |
| 6 | procedure Matrix1 is |
| 7 | |
| 8 | package GRA is new Ada.Numerics.Generic_Real_Arrays (real => float); |
| 9 | use GRA; |
| 10 | |
| 11 | M : constant Real_Matrix (1..2, 1..2) := ((1.0, 0.0), (0.0, 2.0)); |
| 12 | E : constant Real_Vector := Eigenvalues (M); |
| 13 | |
| 14 | begin |
| 15 | null; |
| 16 | end; |