(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
msp430/
pr78818-auto-warn.c
       1  /* { dg-do compile } */
       2  
       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;
       7  
       8  int
       9  main (void)
      10  {
      11    __attribute__((persistent)) int persistent_1 = 1; /* { dg-error "'persistent' attribute cannot be specified for local variables" } */
      12    __attribute__((persistent)) int persistent_2 = 0; /* { dg-error "'persistent' attribute cannot be specified for local variables" } */
      13    static __attribute__((persistent)) int persistent_3 = 1;
      14    static __attribute__((persistent)) int persistent_4 = 0;
      15    return 0;
      16  }