llvm-project/clang/test/CodeGenCXX/debug-info-ctor.cpp

14 lines
224 B
C++
Raw Normal View History

// RUN: %clang -march=x86_64-apple-darwin10 -emit-llvm -g -S %s -o - | FileCheck %s
struct X {
X(int v);
int value;
};
X::X(int v) {
// CHECK: call void @_ZN1XC2Ei(%struct.X* %this1, i32 %tmp), !dbg
value = v;
}