diff gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/func_redef_4.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gcc/testsuite/g++.target/aarch64/sve/acle/general-c++/func_redef_4.c	Thu Feb 13 11:34:05 2020 +0900
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+
+/* Although somewhat suspect, this isn't actively wrong, and doesn't need
+   to be diagnosed.  Any attempt to call the function before including
+   arm_sve.h will lead to a link failure.  (Same for taking its address,
+   etc.)  */
+extern __SVUint8_t svadd_u8_x (__SVBool_t, __SVUint8_t, __SVUint8_t);
+
+#pragma GCC aarch64 "arm_sve.h"