mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 10:15:51 +01:00
Allow interleaving of STDOUT and STDERR check lines. Put STDOUT lines after the line they're attached to, and STDERR lines before. If no STDOUT check line is attached to any line, then put them all at the end of the file instead. This is intended to better handle the case where stdout contains unreplaced mentions of line numbers, and also reflects that stdout is typically a consequence of the test rather than commentary on it, so placing it after the test seems likely to read better.
20 lines
525 B
Plaintext
20 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
|
|
|
|
package ExplorerTest api;
|
|
|
|
namespace Namespace;
|
|
|
|
// This does not interfere with the builtin `AddWith`, nor with the declaration
|
|
// of `F` below.
|
|
interface Namespace.AddWith {}
|
|
|
|
fn F[T:! AddWith(i32) where .Result = i32](n: T) -> i32 { return n + 1; }
|
|
|
|
fn Main() -> i32 { return F(1); }
|
|
|
|
// CHECK:STDOUT: result: 2
|