New directory for Ada testcases. Test handling of NON_LVALUE_EXPR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2007-03-05 08:20:48 +00:00
parent 372dda8881
commit 143cced66b
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;