tests: remove uses of println() that are not relevant to the tests

Swift SVN r28016
This commit is contained in:
Dmitri Hrybenko
2015-05-01 03:35:50 +00:00
parent 71faa43a8d
commit 0fce5c7b4e
43 changed files with 239 additions and 171 deletions

View File

@@ -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()