mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
* start correct * Fix #1394 * remove llvm::outs() * Fix #1394 * --- * fix issue-1394 * fix issue-1394 * Update explorer/interpreter/interpreter.cpp Co-authored-by: Geoff Romer <gromer@google.com> * fix issue-1394 * remove and rename test files * add changes from j.m Co-authored-by: m new <michael.burzan@outlook.de> Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
co-authored by
Geoff Romer
m new
parent
e74c73240c
commit
6cf2272bbe
+3
-3
@@ -2,10 +2,9 @@
|
||||
// Exceptions. See /LICENSE for license information.
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
// RUN: %{explorer} %s 2>&1 | %{FileCheck-strict} %s
|
||||
// RUN: %{explorer-trace} %s 2>&1 | %{FileCheck-allow-unmatched} %s
|
||||
// RUN: %{not} %{explorer} %s 2>&1 | %{FileCheck-strict} %s
|
||||
// RUN: %{not} %{explorer-trace} %s 2>&1 | %{FileCheck-allow-unmatched} %s
|
||||
// AUTOUPDATE: %{explorer} %s
|
||||
// CHECK:result: 0
|
||||
|
||||
package ExplorerTest api;
|
||||
|
||||
@@ -18,6 +17,7 @@ fn G[T:! X](v: T) -> Type {
|
||||
}
|
||||
|
||||
fn Main() -> i32 {
|
||||
// CHECK:COMPILATION ERROR: {{.*}}/explorer/testdata/generic_function/fail_call_at_compile_time.carbon:[[@LINE+1]]: Function would be called at compile-time
|
||||
var v: G(0) = 0;
|
||||
return v;
|
||||
}
|
||||
Reference in New Issue
Block a user