mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 02:48:12 +00:00
Discussed in the toolchain meeting today - we'd like to try having this on by default and see if the cost isn't too high. The nodebug test is a bit verbose, because it doesn't have the `--exclude-dump-file-prefix` that test_file would usually add. Is there a nicer way I could write this test to verify that --no-debug-info does what it's meant to?
15 lines
749 B
Plaintext
15 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
|
|
//
|
|
// ARGS: compile --no-debug-info --phase=lower --dump-llvm-ir --output=- --exclude-dump-file-prefix=%{core_package_dir} %s
|
|
//
|
|
// AUTOUPDATE
|
|
// TIP: To test this file alone, run:
|
|
// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/lower/testdata/debug/nodebug.carbon
|
|
// TIP: To dump output, run:
|
|
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/lower/testdata/debug/nodebug.carbon
|
|
|
|
// CHECK:STDOUT: ; ModuleID = 'nodebug.carbon'
|
|
// CHECK:STDOUT: source_filename = "nodebug.carbon"
|