We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894c097 commit e6b7a2dCopy full SHA for e6b7a2d
clang/test/Sema/attr-target-riscv.c
@@ -0,0 +1,6 @@
1
+// RUN: %clang_cc1 -triple riscv64-linux-gnu -target-feature +i -fsyntax-only -verify -std=c2x %s
2
+
3
+//expected-note@+1 {{previous definition is here}}
4
+int __attribute__((target("arch=rv64g"))) foo(void) { return 0; }
5
+//expected-error@+1 {{redefinition of 'foo'}}
6
+int __attribute__((target("arch=rv64gc"))) foo(void) { return 0; }
0 commit comments