mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 06:18:11 +00:00
This replaces the printing that was removed from SemIR's raw dump. It's separate because (for example) lexing generates shared values, and so reviewing them is not specific to any particular phase.
21 lines
584 B
Plaintext
21 lines
584 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
|
|
//
|
|
// ARGS: compile --phase=lex --dump-shared-values %s
|
|
//
|
|
// AUTOUPDATE
|
|
|
|
var a: f64 = 1.0;
|
|
var b: String = "ab\"c";
|
|
|
|
// CHECK:STDOUT: shared_values:
|
|
// CHECK:STDOUT: - integers:
|
|
// CHECK:STDOUT: - 64
|
|
// CHECK:STDOUT: - reals:
|
|
// CHECK:STDOUT: - 10*10^-1
|
|
// CHECK:STDOUT: - strings:
|
|
// CHECK:STDOUT: - "a"
|
|
// CHECK:STDOUT: - "b"
|
|
// CHECK:STDOUT: - "ab\"c"
|