diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/ipa/ipa-structreorg-04-layout-compile-0.c')
-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); } |