fail_no_semi.carbon 756 B

1234567891011121314151617
  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. // CHECK:STDOUT: [
  7. // CHECK:STDOUT: {kind: 'PackageIntroducer', text: 'package'},
  8. // CHECK:STDOUT: {kind: 'Name', text: 'Geometry'},
  9. // CHECK:STDOUT: {kind: 'PackageApi', text: 'api'},
  10. // CHECK:STDOUT: {kind: 'PackageDirective', text: 'package', has_error: yes, subtree_size: 4},
  11. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  12. // CHECK:STDOUT: ]
  13. // CHECK:STDERR: fail_no_semi.carbon:[[@LINE+3]]:21: `package` declarations must end with a `;`.
  14. // CHECK:STDERR: package Geometry api
  15. // CHECK:STDERR: ^
  16. package Geometry api