mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 06:31:04 +01:00
21 lines
602 B
Plaintext
21 lines
602 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
|
|
//
|
|
// AUTOUPDATE
|
|
|
|
fn Run() -> i32 {
|
|
var x: i32 = 1;
|
|
return x;
|
|
}
|
|
|
|
// CHECK:STDOUT: ; ModuleID = 'local.carbon'
|
|
// CHECK:STDOUT: source_filename = "local.carbon"
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: define i32 @main() {
|
|
// CHECK:STDOUT: %x = alloca i32, align 4
|
|
// CHECK:STDOUT: store i32 1, ptr %x, align 4
|
|
// CHECK:STDOUT: %1 = load i32, ptr %x, align 4
|
|
// CHECK:STDOUT: ret i32 %1
|
|
// CHECK:STDOUT: }
|