mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 09:35:04 +01:00
This is continuing with #3070, starting dir renaming with lowering because it's at the tip. AFAICT git is catching all the file moves.
21 lines
601 B
Plaintext
21 lines
601 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 @Run() {
|
|
// 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: }
|