mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 23:42:38 +00:00
This currently handles most of struct types and member access, but not values. The value issue is, I think, an underlying semantic IR approach (changed in #2824). I'd still like to get this in in order to ensure I'm creating IR at least reasonably well, but I want to be clear this is expected to be incomplete and is split out mainly to try to keep PRs in reasonable units.
16 lines
578 B
Plaintext
16 lines
578 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 = 'toolchain/lowering/testdata/function/definition/params_one.carbon'
|
|
// CHECK:STDOUT: source_filename = "toolchain/lowering/testdata/function/definition/params_one.carbon"
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: %0 = type {}
|
|
// CHECK:STDOUT:
|
|
// CHECK:STDOUT: define %0 @Foo(i32 %a) {
|
|
// CHECK:STDOUT: entry:
|
|
// CHECK:STDOUT: }
|
|
|
|
fn Foo(a: i32) {}
|