]>
Commit | Line | Data |
---|---|---|
9b2adcdb | 1 | // { dg-do run } |
7cc9022f | 2 | // { dg-require-effective-target hosted } |
9b2adcdb L |
3 | |
4 | #include <cxxabi.h> | |
5 | #include <cassert> | |
6 | #include <cstddef> | |
b0e90d2a | 7 | #include <cstdlib> |
9b2adcdb L |
8 | |
9 | int main() | |
10 | { | |
11 | std::size_t length = 0; | |
12 | int cc; | |
13 | ||
14 | char* ret = abi::__cxa_demangle("e", 0, &length, &cc); | |
15 | ||
16 | assert( (cc < 0 && !ret) || (ret && length) ); | |
4f7c2c7f | 17 | std::free(ret); |
9b2adcdb L |
18 | return 0; |
19 | } |