nodebug.carbon 981 B

1234567891011121314151617181920212223242526
  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. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/convert.carbon
  6. // EXTRA-ARGS: --no-debug-info
  7. //
  8. // AUTOUPDATE
  9. // TIP: To test this file alone, run:
  10. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/lower/testdata/debug/nodebug.carbon
  11. // TIP: To dump output, run:
  12. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/lower/testdata/debug/nodebug.carbon
  13. fn F() {
  14. }
  15. // CHECK:STDOUT: ; ModuleID = 'nodebug.carbon'
  16. // CHECK:STDOUT: source_filename = "nodebug.carbon"
  17. // CHECK:STDOUT:
  18. // CHECK:STDOUT: ; Function Attrs: nounwind
  19. // CHECK:STDOUT: define void @_CF.Main() #0 {
  20. // CHECK:STDOUT: entry:
  21. // CHECK:STDOUT: ret void
  22. // CHECK:STDOUT: }
  23. // CHECK:STDOUT:
  24. // CHECK:STDOUT: attributes #0 = { nounwind }