2017-02-15 08:01:12 +08:00
|
|
|
// RUN: %clang_cc1 -x c++ -triple x86_64-pc-linux-gnu -emit-llvm < %s | FileCheck %s
|
2017-02-15 07:46:37 +08:00
|
|
|
|
|
|
|
struct A { A(int); ~A(); };
|
|
|
|
int f(const A &);
|
|
|
|
// CHECK: call void @_ZN1AC1Ei
|
2021-11-09 01:09:49 +08:00
|
|
|
// CHECK-NEXT: call i32 @_Z1fRK1A
|
2017-02-15 07:46:37 +08:00
|
|
|
// CHECK-NEXT: call void @_ZN1AD1Ev
|
|
|
|
// CHECK: call void @_ZN1AC1Ei
|
2021-11-09 01:09:49 +08:00
|
|
|
// CHECK-NEXT: call i32 @_Z1fRK1A
|
2017-02-15 07:46:37 +08:00
|
|
|
// CHECK-NEXT: call void @_ZN1AD1Ev
|
|
|
|
template<typename T> void g() {
|
|
|
|
int a[f(3)];
|
|
|
|
int b[f(3)];
|
|
|
|
}
|
|
|
|
int main() { g<int>(); }
|