diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/FrontendC++/2009-02-16-CtorNames-dbg.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp b/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp new file mode 100644 index 0000000..7d98827 --- /dev/null +++ b/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp @@ -0,0 +1,12 @@ +// RUN: %llvmgcc -S -g --emit-llvm %s -o - | grep "\~A" +// RUN: %llvmgcc -S -g --emit-llvm %s -o - | not grep comp_ctor +// RUN: %llvmgcc -S -g --emit-llvm %s -o - | not grep comp_dtor +class A { + int i; +public: + A() { i = 0; } + ~A() { i = 42; } +}; + +A a; + |