Debian Codegraph @

gcc/testsuite/gcc.target/riscv/pr93202.c

raw
1 /* PR inline-asm/93202 */
2 /* { dg-do compile { target fpic } } */
3 /* { dg-options "-fpic" } */
4 /* { dg-skip-if "" { *-*-* } { "-flto" } } */
5
6 void
7 foo (void)
8 {
9 asm volatile ("%h0" :: "i" (&foo)); /* { dg-error "invalid use of '%h'" } */
10 asm volatile ("%R0" :: "i" (&foo)); /* { dg-error "invalid use of '%R'" } */
11 }