Testcase for rev. 64704

llvm-svn: 64705
This commit is contained in:
Devang Patel 2009-02-17 00:15:08 +00:00
parent 161861deb0
commit 19b9ed7a30
1 changed files with 12 additions and 0 deletions

View File

@ -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;