mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
tests: remove uses of println() that are not relevant to the tests
Swift SVN r28016
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
|
||||
|
||||
func markUsed<T>(t: T) {}
|
||||
|
||||
func main() {
|
||||
// CHECK: call void @llvm.dbg.declare(metadata %"protocol<>"* {{.*}}, metadata ![[S:.*]], metadata !{{[0-9]+}}), !dbg ![[DBG:.*]]
|
||||
// CHECK: ![[S]] = !DILocalVariable(tag: DW_TAG_auto_variable, name: "s", {{.*}}line: [[@LINE+3]]
|
||||
// CHECK: ![[SCOPE:.*]] = distinct !DILexicalBlock({{.*}}line: 3, column: 13)
|
||||
// CHECK: ![[DBG]] = !DILocation(line: [[@LINE+1]], column: 6, scope: ![[SCOPE]])
|
||||
var s : Any = "hello world"
|
||||
var n : Any = 12
|
||||
var t : Any = (1,2)
|
||||
println("hello world")
|
||||
// CHECK: ![[SCOPE:.*]] = distinct !DILexicalBlock({{.*}}line: 5, column: 13)
|
||||
// CHECK: ![[DBG]] = !DILocation(line: [[@LINE+1]], column: 7, scope: ![[SCOPE]])
|
||||
var s: Any = "hello world"
|
||||
var n: Any = 12
|
||||
var t: Any = (1,2)
|
||||
markUsed("hello world")
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user