From: Tom de Vries Date: Sat, 30 Dec 2017 10:31:54 +0000 (+0000) Subject: Fix 'memory cannot be printed' in c-c++-common/ubsan/object-size-9.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcf1730d7b527e9777051398cd81f6beafe988c8;p=gcc.git Fix 'memory cannot be printed' in c-c++-common/ubsan/object-size-9.c 2017-12-30 Tom de Vries PR testsuite/83612 * c-c++-common/ubsan/object-size-9.c (t): Add alignment attribute. From-SVN: r256042 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index de242f8dab2..d555be04f41 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-12-30 Tom de Vries + + PR testsuite/83612 + * c-c++-common/ubsan/object-size-9.c (t): Add alignment attribute. + 2017-12-28 Uros Bizjak * g++.old-deja/g++.ext/namedret2.C (f): Return a value. diff --git a/gcc/testsuite/gcc.dg/ubsan/object-size-9.c b/gcc/testsuite/gcc.dg/ubsan/object-size-9.c index e0a2980b426..41c4a94e7b6 100644 --- a/gcc/testsuite/gcc.dg/ubsan/object-size-9.c +++ b/gcc/testsuite/gcc.dg/ubsan/object-size-9.c @@ -3,7 +3,7 @@ /* { dg-options "-fsanitize=undefined" } */ struct T { int c; char d[]; }; -struct T t = { 1, "a" }; +struct T t __attribute__ ((aligned(4096))) = { 1, "a" }; int baz (int i)