aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/data-model-4.c
blob: d41868d6dbc2abe98fe4b54464f8e9a90f53e3eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-additional-options "-fexceptions" } */
/* TODO:is there a way to automatically run the tests on various
   optimizations levels, and with/without debuginfo, rather than
   hardcoding options?  Adapt from torture .exp, presumably.  */

#include <stdio.h>
int
main ()
{
  FILE *f = fopen ("conftest.out", "w");
  if (f == NULL)
    return 1;
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}