fail_target_triple.carbon 748 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. // EXTRA-ARGS: --no-prelude-import --target=x86_687-unknown-linux-gnu --output=-
  6. //
  7. // No autoupdate because the message comes from LLVM.
  8. // To test this file alone, run:
  9. // bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/codegen/testdata/fail_target_triple.carbon
  10. // To dump output, run:
  11. // bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/codegen/testdata/fail_target_triple.carbon
  12. // NOAUTOUPDATE
  13. // CHECK:STDERR: error: invalid target: {{.*}}x86_687{{.*}}
  14. // CHECK:STDERR:
  15. fn Main() {}