summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-ea-01-collect-global-pointers-to-record-0.c
blob: e1147844f18db83cf7dce78414d6561f30358c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { 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;};
struct astruct_s *astruct;

int
main ()
{
	  astruct = NULL;
}

/* { dg-final { scan-ipa-dump "collected,astruct_s" "type-escape-analysis" } } */
/* { dg-final { scan-ipa-dump "collected,astruct_s*" "type-escape-analysis" } } */