hanchenye-llvm-project/clang/test/CodeGenCXX/debug-info-ctor2.cpp

17 lines
283 B
C++
Raw Normal View History

// FIXME: Check IR rather than asm, then triple is not needed.
// RUN: %clang -Xclang -triple=%itanium_abi_triple -fverbose-asm -g -S %s -o - | grep AT_explicit
class MyClass
{
public:
explicit MyClass (int i) :
m_i (i)
{}
private:
int m_i;
};
MyClass m(1);