modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/20030216-1.c (about)

     1  /* This test requires constant propagation of loads and stores to be
     2     enabled.  This is only guaranteed at -O2 and higher.  Do not run
     3     at -O1.  */
     4  /* { dg-skip-if "requires higher optimization" { *-*-* } "-O1" "" } */
     5  
     6  void link_error (void);
     7  const double one=1.0;
     8  main ()
     9  {
    10  #ifdef __OPTIMIZE__
    11    if ((int) one != 1)
    12      link_error ();
    13  #endif
    14    return 0;
    15  }