fail_no_semi.carbon 843 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. // AUTOUPDATE
  6. import Geometry
  7. // CHECK:STDERR: fail_no_semi.carbon:[[@LINE+10]]:21: ERROR: `import` declarations must end with a `;`.
  8. // CHECK:STDERR: // CHECK:STDOUT: ]
  9. // CHECK:STDERR: ^
  10. // CHECK:STDOUT: - filename: fail_no_semi.carbon
  11. // CHECK:STDOUT: parse_tree: [
  12. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  13. // CHECK:STDOUT: {kind: 'ImportIntroducer', text: 'import'},
  14. // CHECK:STDOUT: {kind: 'PackageName', text: 'Geometry'},
  15. // CHECK:STDOUT: {kind: 'ImportDirective', text: 'Geometry', has_error: yes, subtree_size: 3},
  16. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  17. // CHECK:STDOUT: ]