mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 18:22:39 +00:00
31 lines
1.6 KiB
Plaintext
31 lines
1.6 KiB
Plaintext
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
// AUTOUPDATE
|
|
|
|
// CHECK:STDERR: fail_modifiers.carbon:[[@LINE+3]]:37: ERROR: `namespace` unexpected after modifiers.
|
|
// CHECK:STDERR: private abstract base default final namespace Foo;
|
|
// CHECK:STDERR: ^~~~~~~~~
|
|
private abstract base default final namespace Foo;
|
|
|
|
// CHECK:STDERR: fail_modifiers.carbon:[[@LINE+3]]:1: ERROR: Unrecognized declaration introducer.
|
|
// CHECK:STDERR: impl namespace
|
|
// CHECK:STDERR: ^~~~
|
|
impl namespace
|
|
|
|
// CHECK:STDOUT: - filename: fail_modifiers.carbon
|
|
// CHECK:STDOUT: parse_tree: [
|
|
// CHECK:STDOUT: {kind: 'FileStart', text: ''},
|
|
// CHECK:STDOUT: {kind: 'InvalidParseStart', text: 'namespace', has_error: yes},
|
|
// CHECK:STDOUT: {kind: 'AccessModifierKeyword', text: 'private'},
|
|
// CHECK:STDOUT: {kind: 'DeclModifierKeyword', text: 'abstract'},
|
|
// CHECK:STDOUT: {kind: 'DeclModifierKeyword', text: 'base'},
|
|
// CHECK:STDOUT: {kind: 'DeclModifierKeyword', text: 'default'},
|
|
// CHECK:STDOUT: {kind: 'DeclModifierKeyword', text: 'final'},
|
|
// CHECK:STDOUT: {kind: 'InvalidParseSubtree', text: ';', has_error: yes, subtree_size: 7},
|
|
// CHECK:STDOUT: {kind: 'InvalidParseStart', text: 'impl', has_error: yes},
|
|
// CHECK:STDOUT: {kind: 'InvalidParseSubtree', text: 'namespace', has_error: yes, subtree_size: 2},
|
|
// CHECK:STDOUT: {kind: 'FileEnd', text: ''},
|
|
// CHECK:STDOUT: ]
|