Ticket #12599: sigabrt_or_sigsegv.cpp
| File sigabrt_or_sigsegv.cpp, 357 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <iostream> |
| 2 | #include <limits> |
| 3 | #include <cmath> |
| 4 | #include <cfloat> // get a SIGSEGV instead of a SIGABRT if this line is commented |
| 5 | #include <boost/spirit/include/karma.hpp> |
| 6 | |
| 7 | int main() { |
| 8 | std::string s; |
| 9 | std::back_insert_iterator<std::string> sink(s); |
| 10 | boost::spirit::karma::generate(sink, std::numeric_limits<double>::denorm_min()); |
| 11 | return 0; |
| 12 | } |
