aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-03-05 08:20:48 +0000
committerDuncan Sands <baldrick@free.fr>2007-03-05 08:20:48 +0000
commit143cced66b6882b20b74e5315d3f5e049ffa0c4e (patch)
tree47475619ebf2d0908f55c2023e546891d532e7b6 /test
parent372dda8881c7a32a6f5ce0f76a713e3a9ef46ea1 (diff)
downloadexternal_llvm-143cced66b6882b20b74e5315d3f5e049ffa0c4e.zip
external_llvm-143cced66b6882b20b74e5315d3f5e049ffa0c4e.tar.gz
external_llvm-143cced66b6882b20b74e5315d3f5e049ffa0c4e.tar.bz2
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
Diffstat (limited to 'test')
-rw-r--r--test/AdaFrontend/non_lvalue.adb7
-rw-r--r--test/AdaFrontend/non_lvalue.ads11
2 files changed, 18 insertions, 0 deletions
diff --git a/test/AdaFrontend/non_lvalue.adb b/test/AdaFrontend/non_lvalue.adb
new file mode 100644
index 0000000..2a92e52
--- /dev/null
+++ b/test/AdaFrontend/non_lvalue.adb
@@ -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;
diff --git a/test/AdaFrontend/non_lvalue.ads b/test/AdaFrontend/non_lvalue.ads
new file mode 100644
index 0000000..7d4eeed
--- /dev/null
+++ b/test/AdaFrontend/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;