// RUN: %empty-directory(%t) // RUN: %target-swiftc_driver -O -wmo -save-optimization-record=bitstream %s -module-name optrecordmod -o %t/opt-record 2>&1 | %FileCheck -allow-empty %s // RUN: llvm-bcanalyzer -dump %t/optrecordmod.opt.bitstream | %FileCheck -check-prefix=BITSTREAM %s // REQUIRES: OS=macosx || OS=ios || OS=tvos || OS=watchos // 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: }