errors_sorted_test.carbon 610 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} dump tokens %s 2>&1 | \
  6. // RUN: %{FileCheck} --match-full-lines --allow-unused-prefixes=false %s
  7. fn run(String program) {
  8. return True;
  9. var x = 3a;
  10. // CHECK: {{.*}}/errors_sorted_test.carbon:8:24: Closing symbol does not match most recent opening symbol.
  11. // CHECK: {{.*}}/errors_sorted_test.carbon:11:10: Invalid digit 'a' in decimal numeric literal.
  12. // CHECK-COUNT-17: token: {{.*}}