More testdata formatting fixes (#1199)

This commit is contained in:
josh11b
2022-04-20 11:53:45 -07:00
committed by GitHub
parent 10b209eaa7
commit 663d67b316
22 changed files with 42 additions and 32 deletions
@@ -7,13 +7,14 @@
// RUN: %{not} %{executable_semantics} --parser_debug --trace_file=- %s 2>&1 | \
// RUN: %{FileCheck} --match-full-lines --allow-unused-prefixes %s
// AUTOUPDATE: %{executable_semantics} %s
// CHECK: COMPILATION ERROR: {{.*}}/executable_semantics/testdata/let/fail_tuple_pattern_let_context.carbon:17: Cannot assign to rvalue 'c'
// CHECK: COMPILATION ERROR: {{.*}}/executable_semantics/testdata/let/fail_tuple_pattern_let_context.carbon:18: Cannot assign to rvalue 'c'
package ExecutableSemanticsTest api;
fn Main() -> i32 {
let (var a: auto, b: auto, c:auto, d: auto) = (1, 2, 3, 4);
let (var a: auto, b: auto, c: auto, d: auto) = (1, 2, 3, 4);
a = 0;
c = 0; // should fail
// should fail
c = 0;
return 0;
}