diff options
author | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-16 18:09:10 +0200 |
---|---|---|
committer | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-16 18:09:10 +0200 |
commit | c92726640fcf54be8ae6d0fd7049b8a09c3aa4a5 (patch) | |
tree | 310241ac2dc0303b9f0a515e88917a1a660c2de6 | |
parent | 83dd5007061373f2066d1ad050383fc40bece0d3 (diff) |
passing test
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-layout-compile-0.c | 3 |
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); } |