1  /* { dg-do run } */
       2  /* { dg-options "-g" } */
       3  
       4  void __attribute__((noinline))
       5  optimize_me_not ()
       6  {
       7    __asm__ volatile ("" : : : "memory");
       8  }
       9  int a[7][8];
      10  int main()
      11  {
      12    int b, j;
      13    b = 0;
      14    for (; b < 7; b++) {
      15        j = 0;
      16        for (; j < 8; j++)
      17  	a[b][j] = 0;
      18    }
      19    /* j may very well be optimized out, so we cannot test for j == 8.
      20       Instead test j + 1 which will make the test UNSUPPORTED if i
      21       is optimized out.  Since the test previously had wrong debug
      22       with j == 0 this is acceptable.  */
      23    optimize_me_not(); /* { dg-final { gdb-test . "j + 1" "9" { xfail { aarch64*-*-* && { any-opts "-fno-fat-lto-objects" } } } } } */
      24    return 0;
      25  }