Message ID | 33a6fb61-daac-0ab1-5e80-c698961a9d31@mentor.com |
---|---|
State | New |
Headers | show |
Series | [testsuite,PR83612] Fix 'memory cannot be printed' in gcc.dg/ubsan/object-size-9.c | expand |
Fix 'memory cannot be printed' in gcc.dg/ubsan/object-size-9.c 2017-12-30 Tom de Vries <tom@codesourcery.com> PR testsuite/83612 * gcc.dg/ubsan/object-size-9 (t): Add alignment attribute. --- gcc/testsuite/gcc.dg/ubsan/object-size-9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/ubsan/object-size-9.c b/gcc/testsuite/gcc.dg/ubsan/object-size-9.c index e0a2980..41c4a94 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)