fail_missing_name.carbon 702 B

123456789101112131415161718
  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_missing_name.carbon:[[@LINE+3]]:11: `interface` introducer should be followed by a name.
  7. // CHECK:STDERR: interface {
  8. // CHECK:STDERR: ^
  9. interface {
  10. }
  11. // CHECK:STDOUT: [
  12. // CHECK:STDOUT: {kind: 'InterfaceIntroducer', text: 'interface'},
  13. // CHECK:STDOUT: {kind: 'InvalidParse', text: '{'},
  14. // CHECK:STDOUT: {kind: 'InterfaceDeclaration', text: 'interface', has_error: yes, subtree_size: 3},
  15. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  16. // CHECK:STDOUT: ]