aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-03-16 11:47:26 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-03-16 11:47:26 +0000
commit2447776cc92a53f18c9a439e198cfd1d8f9cb330 (patch)
tree12f156b2aa3208d9537ce80c5796aaa8041091a4 /gcc/testsuite
parent86286a8a969979fabab15c052ad8540e44a61720 (diff)
downloadgcc-2447776cc92a53f18c9a439e198cfd1d8f9cb330.zip
gcc-2447776cc92a53f18c9a439e198cfd1d8f9cb330.tar.gz
gcc-2447776cc92a53f18c9a439e198cfd1d8f9cb330.tar.bz2
stor-layout.c (finish_bitfield_representative): Fall back to the conservative maximum size if...
2012-03-16 Richard Guenther <rguenther@suse.de> * stor-layout.c (finish_bitfield_representative): Fall back to the conservative maximum size if we cannot compute the size of the tail padding. * gnat.dg/specs/pack7.ads: New testcase. From-SVN: r185464
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gnat.dg/specs/pack7.ads13
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b79bdcc..eddbfac 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-03-16 Richard Guenther <rguenther@suse.de>
+
+ * gnat.dg/specs/pack7.ads: New testcase.
+
2012-03-15 Jakub Jelinek <jakub@redhat.com>
PR target/52568
diff --git a/gcc/testsuite/gnat.dg/specs/pack7.ads b/gcc/testsuite/gnat.dg/specs/pack7.ads
new file mode 100644
index 0000000..8a1250a
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/specs/pack7.ads
@@ -0,0 +1,13 @@
+-- { dg-do compile }
+
+package Pack7 is
+
+ type R (D : Natural) is record
+ S : String (1 .. D);
+ N : Natural;
+ B : Boolean;
+ end record;
+ for R'Alignment use 4;
+ pragma Pack (R);
+
+end Pack7;