blob: 3e3caf7721d7c4791663f64b5e133ff5ece06092 [file] [log] [blame]
#if defined(__BLOCKS__) && defined(__clang__)
extern "C" void abort(void);
class Test {
public:
int i;
Test() : i(0)
{
}
~Test()
{
i = -1;
}
Test(const Test&r)
{
i = r.i;
}
void speak() const
{
if (i != 0)
abort();
}
};
#endif
int main (int , char * const [])
{
#if defined(__BLOCKS__) && defined(__clang__)
Test t;
^{ t.speak(); }();
#endif
return 0;
}