Files
swift-mirror/test/DebugInfo/top_level_code.swift
Saleem Abdulrasool 5175ecd677 test: improve DebugInfo test coverage on Windows
This makes a number of tests now pass on Windows.  One additional test
should also be repaired on Linux (XFAIL -> PASS).
2018-12-16 14:10:46 -08:00

14 lines
406 B
Swift

// RUN: %target-swift-frontend %s -S -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {}
// CHECK: {{_?}}main:
// CHECK-NEXT: Lfunc_begin0:
// Verify that the top-level function (main) begins at line 0 and then
// proceeds to the first line.
// CHECK: .loc {{[0-9]}} 0 {{[0-9]}}
// CHECK-NOT: Lfunc_end0:
// CHECK: .loc {{[0-9]}} [[@LINE+1]] {{[0-9]}} prologue_end
var a = 1
var b = 2
markUsed(a+b)