Retro68/gcc/libstdc++-v3/testsuite/abi/pr42230.cc
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

17 lines
248 B
C++

// { dg-do run }
#include <cxxabi.h>
#include <cassert>
#include <cstddef>
int main()
{
std::size_t length = 0;
int cc;
char* ret = abi::__cxa_demangle("e", 0, &length, &cc);
assert( (cc < 0 && !ret) || (ret && length) );
return 0;
}