fail_clang_no_optimize_arg.carbon 779 B

12345678910111213141516
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // ARGS: compile %s -- -###
  6. //
  7. // SET-CAPTURE-CONSOLE-OUTPUT
  8. // SET-CHECK-SUBSET
  9. // NOAUTOUPDATE
  10. // TIP: To test this file alone, run:
  11. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/driver/testdata/compile/optimize/fail_clang_no_optimize_arg.carbon
  12. // TIP: To dump output, run:
  13. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/driver/testdata/compile/optimize/fail_clang_no_optimize_arg.carbon
  14. // CHECK:STDERR: "{{.*}}/toolchain/install/llvm/bin/clang" "-cc1" {{.*}} "-O1" {{.*}}
  15. // --- fail_foo.carbon