zero.carbon 774 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. // AUTOUPDATE
  6. // TIP: To test this file alone, run:
  7. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/lower/testdata/basics/zero.carbon
  8. // TIP: To dump output, run:
  9. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/lower/testdata/basics/zero.carbon
  10. fn Main() -> i32 {
  11. return 0;
  12. }
  13. // CHECK:STDOUT: ; ModuleID = 'zero.carbon'
  14. // CHECK:STDOUT: source_filename = "zero.carbon"
  15. // CHECK:STDOUT:
  16. // CHECK:STDOUT: define i32 @Main() {
  17. // CHECK:STDOUT: entry:
  18. // CHECK:STDOUT: ret i32 0
  19. // CHECK:STDOUT: }