(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr26427.c
       1  /* { dg-warning "this target does not support" "" {target *86*-*-darwin* } 0 } */
       2  /* { dg-do run { target { *-*-darwin* } } } */
       3  /* { dg-options { -fsection-anchors -O } } */
       4  /* PR target/26427 */
       5  
       6  struct a {};
       7  static const int d = 1;
       8  static const struct a b = {};
       9  static const int c = 1;
      10  int f(const int *, const struct a *, const int*, const int*);
      11  
      12  int g(void) {
      13    return f(&c, &b, &d, &c);
      14  }
      15  
      16  int f(const int *b, const struct a *c, const int *d, const int *e) {
      17    return *b == *d;
      18  }
      19  
      20  int main(void) {
      21    if (!g())
      22      __builtin_abort();
      23    return 0;
      24  }