mirror of git://gcc.gnu.org/git/gcc.git
20 lines
327 B
C++
20 lines
327 B
C++
// { dg-do run }
|
|
// { dg-require-effective-target hosted }
|
|
|
|
#include <cxxabi.h>
|
|
#include <cassert>
|
|
#include <cstddef>
|
|
#include <cstdlib>
|
|
|
|
int main()
|
|
{
|
|
std::size_t length = 0;
|
|
int cc;
|
|
|
|
char* ret = abi::__cxa_demangle("e", 0, &length, &cc);
|
|
|
|
assert( (cc < 0 && !ret) || (ret && length) );
|
|
std::free(ret);
|
|
return 0;
|
|
}
|