9b2adcdbc1
libiberty/ 2010-01-09 Ian Lance Taylor <iant@google.com> PR other/42230 * cp-demangle.c (d_demangle): Return dgs.alc on success. libstdc++-v3/ 2010-01-09 H.J. Lu <hongjiu.lu@intel.com> PR other/42230 * testsuite/abi/pr42230.cc: New. From-SVN: r155785
17 lines
248 B
C++
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;
|
|
}
|