errors_sorted_test.carbon 760 B

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