// RUN: %empty-directory(%t) // RUN: %target-swift-frontend -c -O -wmo -save-optimization-record=bitstream -save-optimization-record-path %t/optrecordmod.opt.bitstream %s -module-name optrecordmod -o %t/opt-record.o 2>&1 | %FileCheck -allow-empty %s // RUN: llvm-bcanalyzer -dump %t/optrecordmod.opt.bitstream | %FileCheck -check-prefix=BITSTREAM %s // RUN: otool -l %t/opt-record.o | %FileCheck -check-prefix=OBJ %s // REQUIRES: VENDOR=apple // Ensure we emitted the appropriate section // OBJ: sectname __remarks // CHECK-NOT: remark var a: Int = 1 #sourceLocation(file: "custom.swift", line: 2000) func foo() { a = 2 } #sourceLocation() // reset public func bar() { foo() // BITSTREAM: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: // BITSTREAM-NEXT: }