(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
auto-init-10.c
       1  /* Verify the variable attribute "uninitialized".  */ 
       2  /* { dg-do compile } */
       3  /* { dg-options "-ftrivial-auto-var-init=pattern -fdump-tree-gimple" } */
       4  
       5  extern void bar (char, long long *) __attribute__ ((uninitialized)); /* { dg-warning "'uninitialized' attribute ignored because" "is not a variable" } */
       6  extern int __attribute__ ((uninitialized)) boo1; /* { dg-warning "'uninitialized' attribute ignored because 'boo1' is not a local variable" } */
       7  static int __attribute__ ((uninitialized)) boo2; /* { dg-warning "'uninitialized' attribute ignored because 'boo2' is not a local variable" } */
       8  
       9  
      10  void foo()
      11  {
      12    short temp1;
      13    long long __attribute__ ((uninitialized)) temp2[10];
      14    static int __attribute__ ((uninitialized)) boo3; /* { dg-warning "'uninitialized' attribute ignored because 'boo3' is not a local variable" } */
      15  
      16  
      17    bar (temp1, temp2);
      18    return;
      19  }
      20  
      21  /* { dg-final { scan-tree-dump "temp1 = .DEFERRED_INIT \\(2, 1, \&\"temp1\"" "gimple" } } */
      22  /* { dg-final { scan-tree-dump-not "temp2 = .DEFERRED_INIT \\(" "gimple" } } */