Files
carbon-lang/toolchain/lowering/testdata/function/definition/empty_struct.carbon
T
2023-07-27 21:17:29 +00:00

17 lines
525 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
// CHECK:STDOUT: ; ModuleID = 'empty_struct.carbon'
// CHECK:STDOUT: source_filename = "empty_struct.carbon"
// CHECK:STDOUT:
// CHECK:STDOUT: %StructLiteralType = type {}
// CHECK:STDOUT:
// CHECK:STDOUT: define void @Echo(%StructLiteralType %a) {
// CHECK:STDOUT: ret void
// CHECK:STDOUT: }
fn Echo(a: {}) {
}