OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / abi / pr42230.cc
1 // { dg-do run }
2
3 #include <cxxabi.h>
4 #include <cassert>
5 #include <cstddef>
6
7 int main()
8 {
9   std::size_t length = 0;
10   int cc;
11
12   char* ret = abi::__cxa_demangle("e", 0, &length, &cc);
13
14   assert( (cc < 0 && !ret) || (ret && length) );
15   return 0;
16 }