fail_errors_in_two_files.carbon 691 B

12345678910111213141516171819202122
  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: compile --phase=lex %s
  6. //
  7. // AUTOUPDATE
  8. // --- file1.carbon
  9. // CHECK:STDERR: file1.carbon:[[@LINE+3]]:24: ERROR: 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. // --- file2.carbon
  15. // CHECK:STDERR: file2.carbon:[[@LINE+3]]:10: ERROR: Invalid digit 'a' in decimal numeric literal.
  16. // CHECK:STDERR: var x = 3a;
  17. // CHECK:STDERR: ^
  18. var x = 3a;