[llvm-commits] [llvm] r45588 - /llvm/trunk/test/FrontendAda/non_bitfield.ads

Duncan Sands baldrick at free.fr
Fri Jan 4 09:31:57 PST 2008


Author: baldrick
Date: Fri Jan  4 11:31:56 2008
New Revision: 45588

URL: http://llvm.org/viewvc/llvm-project?rev=45588&view=rev
Log:
Testcase with non-integer "bitfields" (in quotes,
since they didn't actually need to be bitfields,
though they are marked as such).

Added:
    llvm/trunk/test/FrontendAda/non_bitfield.ads

Added: llvm/trunk/test/FrontendAda/non_bitfield.ads
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendAda/non_bitfield.ads?rev=45588&view=auto

==============================================================================
--- llvm/trunk/test/FrontendAda/non_bitfield.ads (added)
+++ llvm/trunk/test/FrontendAda/non_bitfield.ads Fri Jan  4 11:31:56 2008
@@ -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;





More information about the llvm-commits mailing list