1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
12 // CHECK-LABEL: define{{.*}} void @_Z1fiPPKc(
13 void f(int argc
, const char* argv
[]) {
14 // CHECK: call void @_ZN1XC1Ev
16 // CHECK: call ptr @llvm.stacksave.p0(
17 const char *argv2
[argc
];
18 // CHECK: call void @_ZN1YC1Ev
20 for (int i
= 0; i
!= argc
; ++i
)
23 // CHECK: call void @_ZN1YD1Ev
24 // CHECK: call void @llvm.stackrestore.p0
25 // CHECK: call void @_ZN1XD1Ev
30 // Make sure this doesn't crash; there was a use-after-free issue
32 template<typename T
> int f(int n
) {