From dd0098d994c92835e9906794cca0bc3c381afb85 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 20 Aug 2024 19:27:15 +0000 Subject: [PATCH] Add test for driver flag compatibility error --- toolchain/driver/testdata/fail_flags.carbon | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 toolchain/driver/testdata/fail_flags.carbon diff --git a/toolchain/driver/testdata/fail_flags.carbon b/toolchain/driver/testdata/fail_flags.carbon new file mode 100644 index 0000000000000..f32c2f3cf24ac --- /dev/null +++ b/toolchain/driver/testdata/fail_flags.carbon @@ -0,0 +1,13 @@ +// 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 --debug-info --phase=check %s +// +// AUTOUPDATE +// TIP: To test this file alone, run: +// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/fail_flags.carbon +// TIP: To dump output, run: +// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/fail_flags.carbon +// +// CHECK:STDERR: ERROR: Requested debug info but compile phase is limited to 'check'.