fail_empty.carbon 832 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. // RUN: %{not} %{carbon-run-parser}
  7. // CHECK:STDOUT: [
  8. // CHECK:STDOUT: {kind: 'VariableIntroducer', text: 'var'},
  9. // CHECK:STDOUT: {kind: 'DeclaredName', text: ';', has_error: yes},
  10. // CHECK:STDOUT: {kind: 'InvalidParse', text: ';', has_error: yes},
  11. // CHECK:STDOUT: {kind: 'PatternBinding', text: ';', has_error: yes, subtree_size: 3},
  12. // CHECK:STDOUT: {kind: 'VariableDeclaration', text: ';', subtree_size: 5},
  13. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  14. // CHECK:STDOUT: ]
  15. // CHECK:STDERR: {{.*}}/toolchain/parser/testdata/var/fail_empty.carbon:[[@LINE+1]]:4: Expected pattern in `var` declaration.
  16. var;