mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 06:05:46 +01:00
This pr creates the object file for the carbon code that returns either 0 or 1. The command to convert the object code to binary is `clang <object_file_name> -o <binary_name>` --------- Co-authored-by: Farzana Ahmed Siddique <fasiddique@google.com> Co-authored-by: Richard Smith <richard@metafoo.co.uk>
9 lines
409 B
Plaintext
9 lines
409 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
|
|
//
|
|
// RUN: %{not} %{carbon} dump objcode --target_triple=x86_684-unknown-linux-gnu --output_file=output.o %s | %{FileCheck-strict}
|
|
// CHECK:STDERR: ERROR: Invalid -target_triple:{{.*}}
|
|
|
|
fn Main() -> i32 { return 0; }
|