mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-03 00:33:09 +00:00
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:
parent
372dda8881
commit
143cced66b
7
test/AdaFrontend/non_lvalue.adb
Normal file
7
test/AdaFrontend/non_lvalue.adb
Normal 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;
|
11
test/AdaFrontend/non_lvalue.ads
Normal file
11
test/AdaFrontend/non_lvalue.ads
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user