1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre -fdump-tree-optimized-blocks-details" } */
4 extern void foo (char*, int);
5 extern void mysprintf (char *, char *);
6 extern void myfree (void *);
7 extern int access (char *, int);
8 extern int fopen (char *, int);
11 hprofStartupp (char *outputFileName
, char *ctx
)
15 mysprintf (fileName
, outputFileName
);
16 if (access (fileName
, 1) == 0)
22 fp
= fopen (fileName
, 0);
29 foo (outputFileName
, fp
);
34 /* { dg-final { scan-tree-dump-times "myfree \\(" 1 "pre"} } */
35 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized"} } */