comments.carbon 515 B

1234567891011121314
  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. // This is a comment.
  5. // Comment with whitespace.
  6. // class C; fn F[T:! A](a: T) -> i32 { return 86; }
  7. //@dump-sem-ir-begin
  8. //@dump-sem-ir-end
  9. //@dump-sem-ir-
  10. //no whitespace after double slash
  11. /* invalid comment pattern. */
  12. /// invalid comment pattern.
  13. class C; // Comment after a statement/expression/declaration.