1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

New directory for Ada testcases. Test handling of NON_LVALUE_EXPR.

llvm-svn: 34925
This commit is contained in:
Duncan Sands 2007-03-05 08:20:48 +00:00
parent b0de2b2a9c
commit 964b80ff60
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
-- RUN: %llvmgcc -c %s -o /dev/null
package body Non_LValue is
function A (Y : U) return String is
begin
return Y.X.B;
end;
end;

View File

@ -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;