summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-ea-01-collect-global-pointers-to-record-0.c
blob: c592bdd0be24cf21726d9b7fba207d5487c90985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do link } */
/* { dg-options  "-fipa-hello-world -fdump-ipa-hello-world" } */

#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" "hello-world" } } */
/* { dg-final { scan-ipa-dump "collected,astruct_s*" "hello-world" } } */