Use a ManagedCleanup to prevent leaking the PassRegistrar map. In breaks the
[oota-llvm.git] / test / FrontendC++ / 2003-08-24-Cleanup.cpp
1 // RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep unwind
2
3 struct S { ~S(); };
4
5 int mightthrow();
6
7 int test() {
8   S s;
9   mightthrow();
10 }