(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
builtin-tgmath-err-2.c
       1  /* Test __builtin_tgmath: errors that indicate bad arguments in a call
       2     to a type-generic macro, non-DFP.  */
       3  /* { dg-do compile } */
       4  /* { dg-options "" } */
       5  
       6  float f_f (float);
       7  double f_d (double);
       8  long double f_ld (long double);
       9  void *p;
      10  long double ld;
      11  _Complex float cf;
      12  
      13  void
      14  test (void)
      15  {
      16    __builtin_tgmath (f_f, f_d, f_ld, p); /* { dg-error "invalid type of argument" } */
      17    __builtin_tgmath (f_f, f_d, ld); /* { dg-error "no matching function for type-generic call" } */
      18    __builtin_tgmath (f_f, f_d, cf); /* { dg-error "no matching function for type-generic call" } */
      19  }