simple.carbon 644 B

1234567891011121314151617181920
  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. // AUTOUPDATE
  6. // CHECK:STDOUT: ; ModuleID = 'simple.carbon'
  7. // CHECK:STDOUT: source_filename = "simple.carbon"
  8. // CHECK:STDOUT:
  9. // CHECK:STDOUT: %EmptyTupleType = type {}
  10. // CHECK:STDOUT:
  11. // CHECK:STDOUT: declare %EmptyTupleType @F(i32)
  12. // CHECK:STDOUT:
  13. // CHECK:STDOUT: define %EmptyTupleType @G(i32 %n) {
  14. // CHECK:STDOUT: %F = call %EmptyTupleType @F(i32 %n)
  15. // CHECK:STDOUT: ret void
  16. // CHECK:STDOUT: }
  17. fn F(n: i32);
  18. fn G(n: i32) { F(n); }