errors_streamed_test.carbon 626 B

123456789101112131415
  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. // RUN: %{not} %{carbon} --print-errors=streamed dump tokens %s | \
  6. // RUN: %{FileCheck-strict}
  7. // CHECK-COUNT-17:STDOUT: token: {{.*}}
  8. fn run(String program) {
  9. return True;
  10. var x = 3a;
  11. // CHECK:STDERR:{{.*}}/errors_streamed_test.carbon:[[@LINE-2]]:10: Invalid digit 'a' in decimal numeric literal.
  12. // CHECK:STDERR:{{.*}}/errors_streamed_test.carbon:[[@LINE-6]]:24: Closing symbol does not match most recent opening symbol.