textual_ir.carbon 576 B

123456789101112131415161718192021
  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. // ARGS: compile --phase=check --dump-semantics-ir %s
  6. //
  7. // Just check that the raw IR format isn't included in `dump semantics-ir` mode.
  8. // AUTOUPDATE
  9. fn Foo() {
  10. return;
  11. }
  12. // CHECK:STDOUT: package {
  13. // CHECK:STDOUT: %.loc10 = fn_decl @Foo
  14. // CHECK:STDOUT: }
  15. // CHECK:STDOUT:
  16. // CHECK:STDOUT: fn @Foo() {
  17. // CHECK:STDOUT: !entry:
  18. // CHECK:STDOUT: return
  19. // CHECK:STDOUT: }