Files
swift-mirror/test/DebugInfo/top_level_code.swift
Robert Widmann fe00dc74ea Get rid of _stdlib_didEnterMain
Process arguments are now fetched per-platform
2016-12-12 23:47:48 -05:00

15 lines
365 B
Swift

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