Fix 'memory cannot be printed' in c-c++-common/ubsan/object-size-9.c

2017-12-30  Tom de Vries  <tom@codesourcery.com>

	PR testsuite/83612
	* c-c++-common/ubsan/object-size-9.c (t): Add alignment attribute.

From-SVN: r256042
This commit is contained in:
Tom de Vries 2017-12-30 10:31:54 +00:00 committed by Tom de Vries
parent bad9631148
commit dcf1730d7b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2017-12-30 Tom de Vries <tom@codesourcery.com>
PR testsuite/83612
* c-c++-common/ubsan/object-size-9.c (t): Add alignment attribute.
2017-12-28 Uros Bizjak <ubizjak@gmail.com>
* g++.old-deja/g++.ext/namedret2.C (f): Return a value.

View file

@ -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)