Debian Codegraph @

gcc/testsuite/gcc.target/pru/regio-decl-2.c

raw
1 /* Test __regio_symbol diagnostics for unsupported declarations. */
2
3 /* { dg-do compile } */
4 /* { dg-options "-O1" } */
5
6 #include <stdint.h>
7
8 extern volatile __regio_symbol
9 uint32_t __R30[10]; /* { dg-error "aggregate types are prohibited in '__regio_symbol' address space" } */
10
11 /* { dg-warning "'__R31' initialized and declared 'extern'" "" { target *-*-* } 0 } */
12 extern volatile __regio_symbol
13 uint32_t __R31 = 2; /* { dg-error "variables in '__regio_symbol' address space cannot have initial value" } */