Skip to content

Commit

Permalink
Add test for driver flag compatibility error
Browse files Browse the repository at this point in the history
  • Loading branch information
dwblaikie committed Aug 20, 2024
1 parent dd996bd commit dd0098d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions toolchain/driver/testdata/fail_flags.carbon
Original file line number Diff line number Diff line change
@@ -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'.

0 comments on commit dd0098d

Please sign in to comment.