diff options
author | Duncan Sands <baldrick@free.fr> | 2009-10-22 10:02:10 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-10-22 10:02:10 +0000 |
commit | 65a168cff33acba4136ef47b1d3611daec369a12 (patch) | |
tree | 56979ee7e066338f44239ff9d576950d62a3cd63 | |
parent | 1395d1df097934021f85b8501d79e2ce91ba6975 (diff) |
Test handling of record fields with negative offsets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84851 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/FrontendAda/negative_field_offset.adb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/FrontendAda/negative_field_offset.adb b/test/FrontendAda/negative_field_offset.adb new file mode 100644 index 0000000000..02e3dac23a --- /dev/null +++ b/test/FrontendAda/negative_field_offset.adb @@ -0,0 +1,10 @@ +-- RUN: %llvmgcc -c %s +with System; +procedure Negative_Field_Offset (N : Integer) is + type String_Pointer is access String; + -- Force use of a thin pointer. + for String_Pointer'Size use System.Word_Size; + P : String_Pointer; +begin + P := new String (1 .. N); +end; |