(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vla-stexp-1.c
       1  /* PR29970*/
       2  /* { dg-do run } */
       3  /* { dg-options "-Wall -O0" } */
       4  /* { dg-require-effective-target alloca } */
       5  
       6  int foo(void)
       7  {
       8  	int n = 0;
       9  	return sizeof(*({ n = 10; struct foo { int x[n]; } x; &x; }));
      10  }
      11  
      12  
      13  int main()
      14  {
      15  	if (sizeof(struct foo { int x[10]; }) != foo())
      16  		__builtin_abort();
      17  
      18  	return 0;
      19  }