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 | 1b4b25696bd74249503d2eb34ca17b2d3815796a (patch) | |
tree | 8da65aa6bd37bc366c19655afeba23d8de7a495c /test/FrontendAda/Support | |
parent | 491a6cd8b452eec2920f5530df08141a0111b1d6 (diff) | |
download | external_llvm-1b4b25696bd74249503d2eb34ca17b2d3815796a.zip external_llvm-1b4b25696bd74249503d2eb34ca17b2d3815796a.tar.gz external_llvm-1b4b25696bd74249503d2eb34ca17b2d3815796a.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendAda/Support')
-rw-r--r-- | test/FrontendAda/Support/fat_fields.ads | 6 | ||||
-rw-r--r-- | test/FrontendAda/Support/global_constant.ads | 4 | ||||
-rw-r--r-- | test/FrontendAda/Support/non_lvalue.ads | 11 | ||||
-rw-r--r-- | test/FrontendAda/Support/unc_constructor.ads | 8 | ||||
-rw-r--r-- | test/FrontendAda/Support/var_size.ads | 7 |
5 files changed, 36 insertions, 0 deletions
diff --git a/test/FrontendAda/Support/fat_fields.ads b/test/FrontendAda/Support/fat_fields.ads new file mode 100644 index 0000000..d3eab3e --- /dev/null +++ b/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/test/FrontendAda/Support/global_constant.ads b/test/FrontendAda/Support/global_constant.ads new file mode 100644 index 0000000..cef4b11 --- /dev/null +++ b/test/FrontendAda/Support/global_constant.ads @@ -0,0 +1,4 @@ +package Global_Constant is + pragma Elaborate_Body; + An_Error : exception; +end; diff --git a/test/FrontendAda/Support/non_lvalue.ads b/test/FrontendAda/Support/non_lvalue.ads new file mode 100644 index 0000000..7d4eeed --- /dev/null +++ b/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/test/FrontendAda/Support/unc_constructor.ads b/test/FrontendAda/Support/unc_constructor.ads new file mode 100644 index 0000000..d6f8db5 --- /dev/null +++ b/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/test/FrontendAda/Support/var_size.ads b/test/FrontendAda/Support/var_size.ads new file mode 100644 index 0000000..6a570cb --- /dev/null +++ b/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; |