errors_streamed_test.carbon 657 B

1234567891011121314151617
  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:STDOUT: [
  8. // CHECK-COUNT-17:STDOUT: {{.*}}
  9. // CHECK:STDOUT: ]
  10. fn run(String program) {
  11. return True;
  12. var x = 3a;
  13. // CHECK:STDERR:{{.*}}/errors_streamed_test.carbon:[[@LINE-2]]:10: Invalid digit 'a' in decimal numeric literal.
  14. // CHECK:STDERR:{{.*}}/errors_streamed_test.carbon:[[@LINE-6]]:24: Closing symbol does not match most recent opening symbol.