mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 15:51:07 +01:00
The parser and lexer already produce YAML, so this is fundamentally a consistency issue. I've been thinking about this, and was looking again because I'm working on adding callables, and figured I'd just fix it now.
15 lines
524 B
Plaintext
15 lines
524 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
|
|
//
|
|
// NOAUTOUPDATE
|
|
// RUN: %{carbon} -v dump semantics-ir %s | %{FileCheck-allow-unmatched}
|
|
//
|
|
// Only checks a couple statements in order to minimize manual update churn.
|
|
// CHECK:STDERR: Push 0: FunctionIntroducer -> node<invalid>
|
|
// CHECK:STDERR: AddNode block0: {kind: BindName, arg0: str0, arg1: node4}
|
|
|
|
fn Foo() {
|
|
return;
|
|
}
|