mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
llvm-project commit 1813652b0398345c4b4407d5fd5ffb749830fdd4 removed the prologue_end, so this test started failing. That directive is now annotated with `is_stmt 0`.
16 lines
562 B
Swift
16 lines
562 B
Swift
// RUN: %target-swift-frontend -primary-file %s -S -g -o - | %FileCheck %s
|
|
|
|
// REQUIRES: CPU=x86_64
|
|
|
|
func markUsed<T>(_ t: T) {}
|
|
|
|
// CHECK: .file [[F:[0-9]+]] "{{.*}}prologue.swift"
|
|
func bar<T, U>(_ x: T, y: U) { markUsed("bar") }
|
|
// CHECK: $s8prologue3bar_1yyx_q_tr0_lF:
|
|
// CHECK: .loc [[F]] 0 0 is_stmt 0
|
|
// Make sure there is no allocation happening between the end of
|
|
// prologue and the beginning of the function body.
|
|
// CHECK-NOT: callq *
|
|
// CHECK: .loc [[F]] [[@LINE-6]] {{.}}
|
|
// CHECK: {{callq .*builtinStringLiteral|movq __imp_.*builtinStringLiteral}}
|