summaryrefslogtreecommitdiffstats
path: root/test/FrontendAda/non_lvalue.adb
diff options
context:
space:
mode:
Diffstat (limited to 'test/FrontendAda/non_lvalue.adb')
-rw-r--r--test/FrontendAda/non_lvalue.adb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FrontendAda/non_lvalue.adb b/test/FrontendAda/non_lvalue.adb
new file mode 100644
index 0000000..157f3dd
--- /dev/null
+++ b/test/FrontendAda/non_lvalue.adb
@@ -0,0 +1,7 @@
+-- RUN: %llvmgcc -c %s -I%p/Support
+package body Non_LValue is
+ function A (Y : U) return String is
+ begin
+ return Y.X.B;
+ end;
+end;