fail_no_intro_without_semi.carbon 559 B

12345678910111213
  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: 'EmptyDeclaration', text: 'foo', has_error: yes},
  9. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  10. // CHECK:STDOUT: ]
  11. // CHECK:STDERR: {{.*}}/toolchain/parser/testdata/basics/fail_no_intro_without_semi.carbon:[[@LINE+1]]:1: Unrecognized declaration introducer.
  12. foo bar baz