(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
rtl/
aarch64/
unspecified-pass-error.c
       1  /* { dg-do compile { target aarch64-*-* } } */
       2  /* { dg-additional-options "-O0" } */
       3  
       4  /*
       5     Ensure an __RTL function with an unspecified "startwith" pass doesn't cause
       6     an assertion error on the next function.
       7   */
       8  
       9  int __RTL () badfoo ()
      10  {
      11  (function "badfoo"
      12    (insn-chain
      13      (block 2
      14        (edge-from entry (flags "FALLTHRU"))
      15        (cnote 3 [bb 2] NOTE_INSN_BASIC_BLOCK)
      16        (cinsn 101 (set (reg:DI x19) (reg:DI x0)))
      17        (cinsn 10 (use (reg/i:SI x19)))
      18        (edge-to exit (flags "FALLTHRU"))
      19      ) ;; block 2
      20    ) ;; insn-chain
      21  ) ;; function "foo2"
      22  }
      23  
      24  /* Compile a valid C function to test the clean_state pass has been run.  */
      25  int
      26  foo_a ()
      27  {
      28    return 200;
      29  }
      30