zero.carbon 577 B

1234567891011121314151617
  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. // RUN: %{carbon-run-lowering}
  7. // CHECK:STDOUT: ; ModuleID = '{{.*}}/toolchain/lowering/testdata/basics/zero.carbon'
  8. // CHECK:STDOUT: source_filename = "{{.*}}/toolchain/lowering/testdata/basics/zero.carbon"
  9. // CHECK-EMPTY:
  10. // CHECK:STDOUT: define i32 @Main() {
  11. // CHECK:STDOUT: entry:
  12. // CHECK:STDOUT: ret i32 0
  13. // CHECK:STDOUT: }
  14. fn Main() -> i32 {
  15. return 0;
  16. }