fail_modifiers_before_semi.carbon 945 B

1234567891011121314151617181920
  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:STDERR: fail_modifiers_before_semi.carbon:[[@LINE+3]]:18: ERROR: Unrecognized declaration introducer.
  7. // CHECK:STDERR: protected virtual;
  8. // CHECK:STDERR: ^
  9. protected virtual;
  10. // CHECK:STDOUT: - filename: fail_modifiers_before_semi.carbon
  11. // CHECK:STDOUT: parse_tree: [
  12. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  13. // CHECK:STDOUT: {kind: 'InvalidParseStart', text: ';', has_error: yes},
  14. // CHECK:STDOUT: {kind: 'ProtectedModifier', text: 'protected'},
  15. // CHECK:STDOUT: {kind: 'VirtualModifier', text: 'virtual'},
  16. // CHECK:STDOUT: {kind: 'InvalidParseSubtree', text: ';', has_error: yes, subtree_size: 4},
  17. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  18. // CHECK:STDOUT: ]