blob: 7b40c7701bf762f4f8d3cf8dbe2800eb425156b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do link } */
/* { dg-options "-fipa-type-escape-analysis -fdump-ipa-type-escape-analysis" } */
#include <stddef.h>
struct astruct_s { _Bool a; _Bool b; _Bool c;};
void record_parameter(struct astruct_s a) {}
void pointer_parameter(struct astruct_s *a) {}
void array_parameter(struct astruct_s a[]) {}
int
main ()
{
}
/* { dg-final { scan-ipa-dump "collected,astruct_s" "type-escape-analysis" } } */
/* { dg-final { scan-ipa-dump "collected,astruct_s*" "type-escape-analysis" } } */
/* { dg-final { scan-ipa-dump "collected,astruct_s[]" "type-escape-analysis" } } */
|