gcc/testsuite/c-c++-common/analyzer/pr95026.c
raw| 1 | struct _IO_FILE; |
| 2 | typedef struct _IO_FILE FILE; |
| 3 | typedef struct _message |
| 4 | { |
| 5 | FILE *fp; |
| 6 | } MESSAGE; |
| 7 | extern FILE *fopen (const char *__restrict __filename, |
| 8 | const char *__restrict __modes); |
| 9 | FILE *f (void); |
| 10 | int imap_fetch_message (int i, MESSAGE *msg, char *p) |
| 11 | { |
| 12 | if ((msg->fp = i ? 0 : f ())) |
| 13 | return 0; |
| 14 | if (p) |
| 15 | msg->fp = fopen (p, "r"); |
| 16 | return -1; |
| 17 | } |