mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:51:09 +01:00
This removes the filename from the file-scoped block, and places it above to make it clear where the full SemIR begins (with multifile, providing a barrier between).
20 lines
699 B
Plaintext
20 lines
699 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
|
|
|
|
var test_i32: i32 = ((1) + (2));
|
|
|
|
// CHECK:STDOUT: --- parens.carbon
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: file {
|
|
// CHECK:STDOUT: %test_i32.var: ref i32 = var test_i32
|
|
// CHECK:STDOUT: %test_i32: ref i32 = bind_name test_i32, %test_i32.var
|
|
// CHECK:STDOUT: %.loc7_23: i32 = int_literal 1
|
|
// CHECK:STDOUT: %.loc7_29: i32 = int_literal 2
|
|
// CHECK:STDOUT: %.loc7_26: i32 = add %.loc7_23, %.loc7_29
|
|
// CHECK:STDOUT: assign %test_i32.var, %.loc7_26
|
|
// CHECK:STDOUT: }
|
|
// CHECK:STDOUT:
|