fail_before_lowering.carbon 579 B

1234567891011121314
  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. // CHECK:STDERR: fail_before_lowering.carbon:[[@LINE+6]]:1: ERROR: Unrecognized declaration introducer.
  8. // CHECK:STDERR: a;
  9. // CHECK:STDERR: ^
  10. // CHECK:STDERR: fail_before_lowering.carbon:[[@LINE+3]]:1: ERROR: Semantics TODO: `HandleInvalidParseStart`.
  11. // CHECK:STDERR: a;
  12. // CHECK:STDERR: ^
  13. a;