no_entries.carbon 1.1 KB

12345678910111213141516171819202122
  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. var y: {} = {};
  7. // CHECK:STDOUT: - filename: no_entries.carbon
  8. // CHECK:STDOUT: parse_tree: [
  9. // CHECK:STDOUT: {kind: 'FileStart', text: ''},
  10. // CHECK:STDOUT: {kind: 'VariableIntroducer', text: 'var'},
  11. // CHECK:STDOUT: {kind: 'IdentifierName', text: 'y'},
  12. // CHECK:STDOUT: {kind: 'StructLiteralOrStructTypeLiteralStart', text: '{'},
  13. // CHECK:STDOUT: {kind: 'StructLiteral', text: '}', subtree_size: 2},
  14. // CHECK:STDOUT: {kind: 'BindingPattern', text: ':', subtree_size: 4},
  15. // CHECK:STDOUT: {kind: 'VariableInitializer', text: '='},
  16. // CHECK:STDOUT: {kind: 'StructLiteralOrStructTypeLiteralStart', text: '{'},
  17. // CHECK:STDOUT: {kind: 'StructLiteral', text: '}', subtree_size: 2},
  18. // CHECK:STDOUT: {kind: 'VariableDecl', text: ';', subtree_size: 9},
  19. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  20. // CHECK:STDOUT: ]