aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendC++/2009-02-16-CtorNames-dbg.cpp
blob: 401df90ab37be26ae71cbd50a2687e59384ba51b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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
// FIXME: This is failing on Darwin because of either r66861 or r66859.
// XFAIL: darwin
class A {
  int i;
public:
  A() { i = 0; }
 ~A() { i = 42; }
};

A a;