fail_errors_streamed.carbon 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. // ARGS: --print-errors=streamed dump tokens %s
  6. //
  7. // TODO: Support autoupdate with ARGS.
  8. // NOAUTOUPDATE
  9. // TODO: Disable token output, it's not interesting for these tests.
  10. // CHECK:STDOUT: [
  11. // CHECK:STDOUT: {{.*}}
  12. // CHECK:STDOUT: {{.*}}
  13. // CHECK:STDOUT: {{.*}}
  14. // CHECK:STDOUT: {{.*}}
  15. // CHECK:STDOUT: {{.*}}
  16. // CHECK:STDOUT: {{.*}}
  17. // CHECK:STDOUT: {{.*}}
  18. // CHECK:STDOUT: {{.*}}
  19. // CHECK:STDOUT: {{.*}}
  20. // CHECK:STDOUT: {{.*}}
  21. // CHECK:STDOUT: {{.*}}
  22. // CHECK:STDOUT: {{.*}}
  23. // CHECK:STDOUT: {{.*}}
  24. // CHECK:STDOUT: {{.*}}
  25. // CHECK:STDOUT: {{.*}}
  26. // CHECK:STDOUT: {{.*}}
  27. // CHECK:STDOUT: {{.*}}
  28. // CHECK:STDOUT: ]
  29. fn run(String program) {
  30. return True;
  31. var x = 3a;
  32. // CHECK:STDERR: fail_errors_streamed.carbon:[[@LINE-2]]:10: Invalid digit 'a' in decimal numeric literal.
  33. // CHECK:STDERR: var x = 3a;
  34. // CHECK:STDERR: ^
  35. // CHECK:STDERR: fail_errors_streamed.carbon:[[@LINE-8]]:24: Closing symbol does not match most recent opening symbol.
  36. // CHECK:STDERR: fn run(String program) {
  37. // CHECK:STDERR: ^