summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-04 17:31:56 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-04 17:31:56 +0000
commitd98c63ebb92eb721a7958081e8dd4384a9d131dc (patch)
treedca5508606cbd1db705d397130b89ff6d13c1e11
parent94cf8061e7521b7d59e0905478df1b9f32abef70 (diff)
downloadbcm5719-llvm-d98c63ebb92eb721a7958081e8dd4384a9d131dc.tar.gz
bcm5719-llvm-d98c63ebb92eb721a7958081e8dd4384a9d131dc.zip
Testcase with non-integer "bitfields" (in quotes,
since they didn't actually need to be bitfields, though they are marked as such). llvm-svn: 45588
-rw-r--r--llvm/test/FrontendAda/non_bitfield.ads12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/FrontendAda/non_bitfield.ads b/llvm/test/FrontendAda/non_bitfield.ads
new file mode 100644
index 00000000000..8f5845adb43
--- /dev/null
+++ b/llvm/test/FrontendAda/non_bitfield.ads
@@ -0,0 +1,12 @@
+-- RUN: %llvmgcc -c %s
+package Non_Bitfield is
+ type SP is access String;
+ type E is (A, B, C);
+ type T (D : E) is record
+ case D is
+ when A => X : Boolean;
+ when B => Y : SP;
+ when C => Z : String (1 .. 2);
+ end case;
+ end record;
+end;
OpenPOWER on IntegriCloud