mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-26 22:02:30 +01:00
Since formatting covers comments, and the CHECK lines are in comments, it can create recursive behaviors. This introduces AUTOUPDATE-SPLIT as a way of formally designating a split to exclusively be used for autoupdate output.
22 lines
749 B
Plaintext
22 lines
749 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
|
|
// TIP: To test this file alone, run:
|
|
// TIP: bazel test //testing/file_test:file_test_base_test --test_arg=--file_tests=testing/file_test/testdata/autoupdate_split.carbon
|
|
// TIP: To dump output, run:
|
|
// TIP: bazel run //testing/file_test:file_test_base_test -- --dump_output --file_tests=testing/file_test/testdata/autoupdate_split.carbon
|
|
|
|
// --- a.carbon
|
|
aaa
|
|
|
|
// --- b.carbon
|
|
bbb
|
|
|
|
// --- AUTOUPDATE-SPLIT
|
|
|
|
// CHECK:STDOUT: 3 args: `default_args`, `a.carbon`, `b.carbon`
|
|
// CHECK:STDOUT: a.carbon:1: aaa
|
|
// CHECK:STDOUT: b.carbon:1: bbb
|