Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/acle/general-c/func_redef_5.c

raw
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 __arm_streaming_compatible
12 {
13 return x;
14 }
15
16 #pragma GCC aarch64 "arm_sve.h"
17
18 svuint8_t
19 f (svbool_t pg, svuint8_t x, svuint8_t y)
20 {
21 return svadd_u8_x (pg, x, y);
22 }