diff options
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-ctor2.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-ctor2.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-ctor2.cpp b/clang/test/CodeGenCXX/debug-info-ctor2.cpp new file mode 100644 index 0000000..19bd64b --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-ctor2.cpp @@ -0,0 +1,15 @@ +// RUN: %clang -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); + |