llvm-project/llvm/test/C++Frontend/2004-11-27-ExceptionCleanup...

15 lines
247 B
C++
Raw Normal View History

2004-11-28 06:43:51 +08:00
// RUN: %llvmgxx %s -S -o /dev/null
// This is PR421
struct Strongbad {
Strongbad(const char *str );
~Strongbad();
operator const char *() const;
};
void TheCheat () {
Strongbad foo(0);
Strongbad dirs[] = { Strongbad(0) + 1};
}