summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-06-16 18:09:10 +0200
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-06-16 18:09:10 +0200
commitc92726640fcf54be8ae6d0fd7049b8a09c3aa4a5 (patch)
tree310241ac2dc0303b9f0a515e88917a1a660c2de6
parent83dd5007061373f2066d1ad050383fc40bece0d3 (diff)
passing test
-rw-r--r--gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-layout-compile-0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-layout-compile-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-layout-compile-0.c
index 8d6359d2144..d53d4ee4bed 100644
--- a/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-layout-compile-0.c
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-layout-compile-0.c
@@ -2,6 +2,7 @@
/* { dg-options "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis" } */
#include <stddef.h>
+#include <assert.h>
int
main (int argc, char **argv)
@@ -16,6 +17,6 @@ main (int argc, char **argv)
int *c = &astruct.c;
int *a = &astruct.a;
ptrdiff_t d = c - a;
- char ch[d == 1 ? 1 : -1];
+ assert(d == 1);
}