2002-03-25 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Mar 2002 00:36:19 +0000 (00:36 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Mar 2002 00:36:19 +0000 (00:36 +0000)
    Richard Henderson  <rth@redhat.com>

* testsuite/22_locale/codecvt_members_unicode_char.cc
(test01, test02): make sure that the i_lit_base array
is sufficiently aligned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51359 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/codecvt_members_unicode_char.cc

index 991b6b6..6a17493 100644 (file)
@@ -1,3 +1,10 @@
+2002-03-25  Paolo Carlini <pcarlini@unitus.it>
+            Richard Henderson  <rth@redhat.com>
+
+       * testsuite/22_locale/codecvt_members_unicode_char.cc
+       (test01, test02): make sure that the i_lit_base array
+       is sufficiently aligned.
+
 2002-03-25  Benjamin Kosnik  <bkoz@redhat.com>
 
         * config/os/newlib/bits/ctype_noninline.h (ctype::classic): Set to
index 39882b7..0d0d1d5 100644 (file)
@@ -72,7 +72,7 @@ void test01()
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
 
-  char                         i_lit_base[50] = 
+  char  i_lit_base[50] __attribute__((aligned(__alignof__(int_type)))) = 
   { 
     0x00, 0x62, 0x00, 0x6c, 0x00, 0x61, 0x00, 0x63, 0x00, 0x6b, 0x00, 0x20,
     0x00, 0x70, 0x00, 0x65, 0x00, 0x61, 0x00, 0x72, 0x00, 0x6c, 0x00, 0x20,
@@ -159,7 +159,7 @@ void test02()
   const ext_type*      e_lit = "black pearl jasmine tea";
   int                  size = strlen(e_lit);
 
-  char                  i_lit_base[50] = 
+  char  i_lit_base[50] __attribute__((aligned(__alignof__(int_type)))) = 
   { 
     0x62, 0x00, 0x6c, 0x00, 0x61, 0x00, 0x63, 0x00, 0x6b, 0x00, 0x20, 0x00,
     0x70, 0x00, 0x65, 0x00, 0x61, 0x00, 0x72, 0x00, 0x6c, 0x00, 0x20, 0x00,