errors_streamed_test.carbon 800 B

123456789101112131415161718192021
  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: var x = 3a;
  15. // CHECK:STDERR: ^
  16. // CHECK:STDERR: {{.*}}/errors_streamed_test.carbon:[[@LINE-8]]:24: Closing symbol does not match most recent opening symbol.
  17. // CHECK:STDERR: fn run(String program) {
  18. // CHECK:STDERR: ^