mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 14:50:10 +01:00
I limited the stack size to 1K we can change it or make it dynamic from CLI later Closes #2733
21 lines
500 B
Plaintext
21 lines
500 B
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// AUTOUPDATE
|
|
// RUN: %{not} %{explorer-run}
|
|
// RUN: %{not} %{explorer-run-trace}
|
|
|
|
package EmptyIdentifier impl;
|
|
|
|
fn A() {
|
|
// CHECK:STDERR: RUNTIME ERROR: {{.*}}/explorer/testdata/function/fail_recursion_stackoverflow.carbon:[[@LINE+1]]: stack overflow
|
|
A();
|
|
}
|
|
|
|
fn Main() -> i32
|
|
{
|
|
A();
|
|
return 0;
|
|
}
|