diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/ipa/ipa-ea-00-collect-global-record-0.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-ea-00-collect-global-record-0.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-ea-00-collect-global-record-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-ea-00-collect-global-record-0.c new file mode 100644 index 00000000000..e4e62d4f127 --- /dev/null +++ b/gcc/testsuite/gcc.dg/ipa/ipa-ea-00-collect-global-record-0.c @@ -0,0 +1,20 @@ +/* { dg-do link } */ +/* { dg-options "-fipa-type-escape-analysis -fdump-ipa-type-escape-analysis -fprint-escape-analysis" } */ + +struct astruct_s +{ + _Bool a; + _Bool b; + _Bool c; +}; +struct astruct_s astruct; + +int +main () +{ + astruct.a = 0; +} + +// Please note that braces and semicollons are replaced with dots in order +// to parse correctly +/* { dg-final { scan-ipa-dump "collected: record astruct_s .boolean_type a.boolean_type b.boolean_type c.." "type-escape-analysis" } } */ |