modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/execute/20041212-1.c (about)

     1  /* A function pointer compared with a void pointer should not be canonicalized.
     2     See PR middle-end/17564.  */
     3  void *f (void) __attribute__ ((__noinline__));
     4  void *
     5  f (void)
     6  {
     7    return f;
     8  }
     9  int
    10  main (void)
    11  {
    12    if (f () != f)
    13      abort ();
    14    exit (0);
    15  }