| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // 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
- // TIP: To test this file alone, run:
- // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/format/testdata/basics/comments.carbon
- // TIP: To dump output, run:
- // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/format/testdata/basics/comments.carbon
- // --- test.carbon
- // A comment
- fn F() {}
- // Another comment
- // Block
- // comment
- class C {
- // Internal comment
- }
- // Another
- // Block
- //
- // Comment
- // --- AUTOUPDATE-SPLIT
- // CHECK:STDOUT:
- // CHECK:STDOUT: // A comment
- // CHECK:STDOUT:
- // CHECK:STDOUT: fn F ( ) { }
- // CHECK:STDOUT: // Another comment
- // CHECK:STDOUT:
- // CHECK:STDOUT:
- // CHECK:STDOUT: // Block
- // CHECK:STDOUT: // comment
- // CHECK:STDOUT:
- // CHECK:STDOUT: class C {
- // CHECK:STDOUT: // Internal comment
- // CHECK:STDOUT:
- // CHECK:STDOUT: }
- // CHECK:STDOUT: // Another
- // CHECK:STDOUT: // Block
- // CHECK:STDOUT: //
- // CHECK:STDOUT: // Comment
- // CHECK:STDOUT:
- // CHECK:STDOUT:
|