fail_args.carbon 667 B

12345678910111213141516
  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:STDOUT: [
  7. // CHECK:STDOUT: {kind: 'NamespaceStart', text: 'namespace'},
  8. // CHECK:STDOUT: {kind: 'Name', text: 'Foo'},
  9. // CHECK:STDOUT: {kind: 'Namespace', text: ';', has_error: yes, subtree_size: 3},
  10. // CHECK:STDOUT: {kind: 'FileEnd', text: ''},
  11. // CHECK:STDOUT: ]
  12. // CHECK:STDERR: fail_args.carbon:[[@LINE+3]]:14: `namespace` declarations must end with a `;`.
  13. // CHECK:STDERR: namespace Foo();
  14. // CHECK:STDERR: ^
  15. namespace Foo();