fail_library_skips_name.carbon 652 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. // AUTOUPDATE
  6. // CHECK:STDOUT: [
  7. // CHECK:STDOUT: {kind: 'PackageIntroducer', text: 'package'},
  8. // CHECK:STDOUT: {kind: 'PackageDirective', text: ';', has_error: yes, subtree_size: 2},
  9. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  10. // CHECK:STDOUT: ]
  11. // CHECK:STDERR: fail_library_skips_name.carbon:[[@LINE+3]]:9: Expected identifier after `package`.
  12. // CHECK:STDERR: package library "Shapes" api;
  13. // CHECK:STDERR: ^
  14. package library "Shapes" api;