Switch executable_semantics to lit/filecheck tests. (#819)

This commit is contained in:
Jon Meow
2021-09-09 11:15:41 -07:00
committed by GitHub
parent 90f04700e2
commit 5047cd6447
225 changed files with 1044 additions and 664 deletions
+7
View File
@@ -1,6 +1,8 @@
// 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
//
// RUN: not executable_semantics %s 2>&1 2>&1 | FileCheck %s
package ExecutableSemanticsTest api;
@@ -13,3 +15,8 @@ fn main() -> i32 {
return 0;
}
}
// AUTOUPDATE: executable_semantics %s
// CHECK: COMPILATION ERROR: {{.*}}/tuple_equality3.carbon:12: type error in ==
// CHECK: expected: (0 = i32, 1 = i32)
// CHECK: actual: (0 = i32)