mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add a couple more tests to check/testdata/basic/ to explicitly test the raw dump.
32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
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 x: ((i32, i32), i32) = ((12, 76), 6);
|
|
|
|
// CHECK:STDOUT: package {
|
|
// CHECK:STDOUT: %.loc7_10: type = stub_reference i32
|
|
// CHECK:STDOUT: %.loc7_15: type = stub_reference i32
|
|
// CHECK:STDOUT: %.loc7_18.1: type = tuple_type (type, type)
|
|
// CHECK:STDOUT: %.loc7_18.2: (type, type) = tuple_value (%.loc7_10, %.loc7_15)
|
|
// CHECK:STDOUT: %.loc7_18.3: (type, type) = stub_reference %.loc7_18.2
|
|
// CHECK:STDOUT: %.loc7_21: type = stub_reference i32
|
|
// CHECK:STDOUT: %.loc7_24.1: type = tuple_type ((type, type), type)
|
|
// CHECK:STDOUT: %.loc7_24.2: ((type, type), type) = tuple_value (%.loc7_18.3, %.loc7_21)
|
|
// CHECK:STDOUT: %.loc7_18.4: type = tuple_type (i32, i32)
|
|
// CHECK:STDOUT: %.loc7_24.3: type = tuple_type ((i32, i32), i32)
|
|
// CHECK:STDOUT: %x: ref ((i32, i32), i32) = var "x"
|
|
// CHECK:STDOUT: %.loc7_30.1: i32 = int_literal 12
|
|
// CHECK:STDOUT: %.loc7_30.2: i32 = stub_reference %.loc7_30.1
|
|
// CHECK:STDOUT: %.loc7_34.1: i32 = int_literal 76
|
|
// CHECK:STDOUT: %.loc7_34.2: i32 = stub_reference %.loc7_34.1
|
|
// CHECK:STDOUT: %.loc7_36.1: (i32, i32) = tuple_value (%.loc7_30.2, %.loc7_34.2)
|
|
// CHECK:STDOUT: %.loc7_36.2: (i32, i32) = stub_reference %.loc7_36.1
|
|
// CHECK:STDOUT: %.loc7_39.1: i32 = int_literal 6
|
|
// CHECK:STDOUT: %.loc7_39.2: i32 = stub_reference %.loc7_39.1
|
|
// CHECK:STDOUT: %.loc7_40: ((i32, i32), i32) = tuple_value (%.loc7_36.2, %.loc7_39.2)
|
|
// CHECK:STDOUT: assign %x, %.loc7_40
|
|
// CHECK:STDOUT: }
|