PR rtl-optimization/87918
[official-gcc.git] / gcc / testsuite / gcc.target / msp430 / pr78818-auto-warn.c
blob3dba361071ffebf0ec302ebbb7e19c188adbc480
1 /* { dg-do compile } */
3 __attribute__((persistent)) int persistent_1_g = 1;
4 __attribute__((persistent)) int persistent_2_g = 0;
5 static __attribute__((persistent)) int persistent_3_g = 1;
6 static __attribute__((persistent)) int persistent_4_g = 0;
8 int
9 main (void)
11 __attribute__((persistent)) int persistent_1 = 1; /* { dg-warning "attribute has no effect on automatic" } */
12 __attribute__((persistent)) int persistent_2 = 0; /* { dg-warning "attribute has no effect on automatic" } */
13 static __attribute__((persistent)) int persistent_3 = 1;
14 static __attribute__((persistent)) int persistent_4 = 0;
15 return 0;