Debian Codegraph @

clang/test/Sema/attr-target-riscv.c

raw
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; }