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