mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 09:51:19 +00:00
This drops file_test runtime from about 2.5s to 2s on my machine, which is now ~50% faster than before https://github.com/carbon-language/carbon-lang/pull/5653 slowed things down by adding a lot of stuff to the production prelude.
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
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
|
|
//
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
|
|
// ARGS: -v compile --phase=check %s
|
|
//
|
|
// Only checks a couple statements in order to minimize manual update churn.
|
|
// To test this file alone, run:
|
|
// bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/basics/verbose.carbon
|
|
// To dump output, run:
|
|
// bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/basics/verbose.carbon
|
|
// NOAUTOUPDATE
|
|
// SET-CHECK-SUBSET
|
|
// CHECK:STDERR: Node Push 0: FunctionIntroducer -> <none>
|
|
// CHECK:STDERR: AddPlaceholderInst: {kind: FunctionDecl, arg0: function<none>, arg1: inst_block_empty}
|
|
// CHECK:STDERR: ReplaceInst: inst{{[0-9]+}} -> {kind: FunctionDecl, arg0: function{{[0-9]+}}, arg1: inst_block_empty, type: type(inst{{[0-9]+}})}
|
|
// CHECK:STDERR: inst_block_stack_ Push 1
|
|
// CHECK:STDERR: AddInst: {kind: Return}
|
|
// CHECK:STDERR: inst_block_stack_ Pop 1: inst_block{{[0-9]+}}
|
|
|
|
fn Foo() {
|
|
return;
|
|
}
|