mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 22:02:51 +01:00
This handles toolchain failures per-file. The intent is to allow placing both "success" and "fail" tests in the same file, using splits. However, this PR only adds support and updates existing tests to continue passing.
23 lines
708 B
Plaintext
23 lines
708 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
|
|
//
|
|
// ARGS: compile --phase=lex %s
|
|
//
|
|
// AUTOUPDATE
|
|
|
|
// --- fail_file1.carbon
|
|
|
|
// CHECK:STDERR: fail_file1.carbon:[[@LINE+3]]:24: ERROR: Opening symbol without a corresponding closing symbol.
|
|
// CHECK:STDERR: fn run(String program) {
|
|
// CHECK:STDERR: ^
|
|
fn run(String program) {
|
|
return True;
|
|
|
|
// --- fail_file2.carbon
|
|
|
|
// CHECK:STDERR: fail_file2.carbon:[[@LINE+3]]:10: ERROR: Invalid digit 'a' in decimal numeric literal.
|
|
// CHECK:STDERR: var x = 3a;
|
|
// CHECK:STDERR: ^
|
|
var x = 3a;
|