diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c index 98f43df25e8..cc1c46fc0eb 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-ea-05-global-escapes-0.c @@ -1,12 +1,14 @@ /* { dg-do link } */ -/* { dg-options "-flto -fipa-hello-world -fdump-ipa-hello-world" } */ +/* { dg-options "-flto -fipa-hello-world -fdump-ipa-hello-world" } */ +/* { dg-require-effective-target lto } */ + #include <stddef.h> struct astruct_s { _Bool a; _Bool b; _Bool c;}; __attribute__((externally_visible)) struct astruct_s astruct; // This should escape -struct astruct_b { _Bool a; _Bool b; _Bool c;}; -struct astruct_b bstruct; // This should not escape +struct bstruct_s { _Bool a; _Bool b; _Bool c;}; +struct bstruct_s bstruct; // This should not escape int main() { @@ -15,7 +17,7 @@ int main() } -/* { dg-final { scan-ipa-dump "collected,astruct_s" "hello-world" } } */ -/* { dg-final { scan-ipa-dump "variable bstruct is escaping false" "hello-world" } } */ -/* { dg-final { scan-ipa-dump "collected,bstruct_s" "hello-world" } } */ -/* { dg-final { scan-ipa-dump "variable astruct is escaping true" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "collected,astruct_s" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "variable bstruct is escaping false" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "collected,bstruct_s" "hello-world" } } */ +/* { dg-final { scan-wpa-ipa-dump "variable astruct is escaping true" "hello-world" } } */ |