| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- // 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: // A comment
- // CHECK:STDOUT: fn F () {}
- // CHECK:STDOUT: // Another comment
- // CHECK:STDOUT: // Block
- // CHECK:STDOUT: // comment
- // CHECK:STDOUT: class C {
- // CHECK:STDOUT: // Internal comment
- // CHECK:STDOUT: }
- // CHECK:STDOUT: // Another
- // CHECK:STDOUT: // Block
- // CHECK:STDOUT: //
- // CHECK:STDOUT: // Comment
|