diff options
| author | Duncan Sands <baldrick@free.fr> | 2007-07-23 13:41:53 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2007-07-23 13:41:53 +0000 |
| commit | 1747440364ba8a05b17d179a8626eb50c830d49a (patch) | |
| tree | 6cb4fc09964dd64cca547f8c253d63da29a2eb3e /llvm/test/FrontendAda/Support | |
| parent | fcd78152493afe2f917223a15594633f412db9d1 (diff) | |
| download | bcm5719-llvm-1747440364ba8a05b17d179a8626eb50c830d49a.tar.gz bcm5719-llvm-1747440364ba8a05b17d179a8626eb50c830d49a.zip | |
For multipart tests, place the parts with no
RUN line in Support. Give up on sending output
to /dev/null - this cannot always be arranged.
llvm-svn: 40436
Diffstat (limited to 'llvm/test/FrontendAda/Support')
| -rw-r--r-- | llvm/test/FrontendAda/Support/fat_fields.ads | 6 | ||||
| -rw-r--r-- | llvm/test/FrontendAda/Support/global_constant.ads | 4 | ||||
| -rw-r--r-- | llvm/test/FrontendAda/Support/non_lvalue.ads | 11 | ||||
| -rw-r--r-- | llvm/test/FrontendAda/Support/unc_constructor.ads | 8 | ||||
| -rw-r--r-- | llvm/test/FrontendAda/Support/var_size.ads | 7 |
5 files changed, 36 insertions, 0 deletions
diff --git a/llvm/test/FrontendAda/Support/fat_fields.ads b/llvm/test/FrontendAda/Support/fat_fields.ads new file mode 100644 index 00000000000..d3eab3e2866 --- /dev/null +++ b/llvm/test/FrontendAda/Support/fat_fields.ads @@ -0,0 +1,6 @@ +package Fat_Fields is + pragma Elaborate_Body; + type A is array (Positive range <>) of Boolean; + type A_Ptr is access A; + P : A_Ptr := null; +end; diff --git a/llvm/test/FrontendAda/Support/global_constant.ads b/llvm/test/FrontendAda/Support/global_constant.ads new file mode 100644 index 00000000000..cef4b11f684 --- /dev/null +++ b/llvm/test/FrontendAda/Support/global_constant.ads @@ -0,0 +1,4 @@ +package Global_Constant is + pragma Elaborate_Body; + An_Error : exception; +end; diff --git a/llvm/test/FrontendAda/Support/non_lvalue.ads b/llvm/test/FrontendAda/Support/non_lvalue.ads new file mode 100644 index 00000000000..7d4eeed8b8e --- /dev/null +++ b/llvm/test/FrontendAda/Support/non_lvalue.ads @@ -0,0 +1,11 @@ +package Non_LValue is + type T (Length : Natural) is record + A : String (1 .. Length); + B : String (1 .. Length); + end record; + type T_Ptr is access all T; + type U is record + X : T_Ptr; + end record; + function A (Y : U) return String; +end; diff --git a/llvm/test/FrontendAda/Support/unc_constructor.ads b/llvm/test/FrontendAda/Support/unc_constructor.ads new file mode 100644 index 00000000000..d6f8db50d89 --- /dev/null +++ b/llvm/test/FrontendAda/Support/unc_constructor.ads @@ -0,0 +1,8 @@ +package Unc_Constructor is + type C is null record; + type A is array (Positive range <>) of C; + A0 : constant A; + procedure P (X : A); +private + A0 : aliased constant A := (1 .. 0 => (null record)); +end; diff --git a/llvm/test/FrontendAda/Support/var_size.ads b/llvm/test/FrontendAda/Support/var_size.ads new file mode 100644 index 00000000000..6a570cba8bd --- /dev/null +++ b/llvm/test/FrontendAda/Support/var_size.ads @@ -0,0 +1,7 @@ +package Var_Size is + type T (Length : Natural) is record + A : String (1 .. Length); + B : String (1 .. Length); + end record; + function A (X : T) return String; +end; |

