mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
The Prelude path can be very long, which can make the `SourceLocation`'s `Print(...)` method output unnecessarily verbose. This PR modifies the `SourceLocation`'s `Print()` method to just print the **filename** and **line number** for prelude.
14 lines
370 B
Plaintext
14 lines
370 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:STDERR: RUNTIME ERROR: prelude.carbon:{{\d+}}: "HALLO WELT"
|
|
|
|
package ExplorerTest api;
|
|
|
|
fn Main() -> i32 {
|
|
Assert(false, "HALLO WELT");
|
|
return 0;
|
|
}
|