Debian Codegraph @

gcc/testsuite/gcc.target/pru/regio-as-pointer-2.c

raw
1 /* Test __regio_symbol invalid attempt to get regio variable address. */
2
3 /* { dg-do compile } */
4 /* { dg-options "-O0" } */
5
6 #include "regio.h"
7
8 uint32_t test(void)
9 {
10 return *(&__R30+1); /* { dg-error "invalid access to '__regio_symbol' address space" } */
11 }