fail_in_semantics.carbon 508 B

12345678910
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // This validates that earlier errors prevent lowering, without crashing.
  6. // AUTOUPDATE
  7. // RUN: %{not} %{carbon-run-lowering}
  8. // CHECK:STDERR: {{.*}}/toolchain/lowering/testdata/basics/fail_in_semantics.carbon:[[@LINE+1]]:17: Type mismatch: lhs is nodeIntegerType, rhs is nodeFloatingPointType
  9. var x: i32 = 1.0;