(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
sve/
acle/
general-c/
func_redef_5.c
       1  /* { dg-do compile } */
       2  
       3  /* There's no requirement to diagnose this.  In particular, arm_sve.h
       4     is allowed to use macros to implement the functions, and defining
       5     a macro that matches an existing symbol would not be diagnosed.
       6  
       7     At the moment this works like other built-ins in the sense that the
       8     explicit definition "wins".  This isn't supported behavior though.  */
       9  __SVUint8_t
      10  svadd_u8_x (__SVBool_t pg, __SVUint8_t x, __SVUint8_t y)
      11  {
      12    return x;
      13  }
      14  
      15  #pragma GCC aarch64 "arm_sve.h"
      16  
      17  svuint8_t
      18  f (svbool_t pg, svuint8_t x, svuint8_t y)
      19  {
      20    return svadd_u8_x (pg, x, y);
      21  }