fail_function_recursion.carbon 431 B

123456789101112131415161718
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // NOAUTOUPDATE
  6. // RUN: %{not} %{explorer-run}
  7. // CHECK:STDERR: RUNTIME ERROR: overflow:1: Stack overflow: too many interpreter actions on stack
  8. package EmptyIdentifier impl;
  9. fn A() {
  10. A();
  11. }
  12. fn Main() -> i32 {
  13. A();
  14. return 0;
  15. }