summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/ipa/ipa-ea-13-calling-printf-0.c
blob: aa3e97b5444b72bbc37b0faea38ddf19cb519a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do link } */
/* { dg-options  "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis" } */

#include <stddef.h>
#include <stdio.h>

int main(int argc, char** argv)
{
	char *filename = "helloworld.txt";
	FILE* f = fopen(filename);
	fclose(f);
}


/* { dg-final { scan-wpa-ipa-dump "type FILE is escaping true" "type-escape-analysis" } } */