Update build testing file to deal with MinGW issue https://sourceforge.net/p/mingw-w64/bugs/527/
This commit is contained in:
parent
d663d8b471
commit
cd420b37ae
@ -4,14 +4,21 @@
|
||||
// accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <windows.h>
|
||||
#include "dbgeng.h"
|
||||
|
||||
#ifdef BOOST_NO_CXX11_THREAD_LOCAL
|
||||
# error Your compiler does not support C++11 thread_local storage. It's impossible to build with BOOST_STACKTRACE_USE_WINDBG_CACHED.
|
||||
#endif
|
||||
|
||||
int foo() {
|
||||
static thread_local int i = 0;
|
||||
static thread_local std::string i = "Testing";
|
||||
|
||||
return i;
|
||||
return i.size();
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
Loading…
Reference in New Issue
Block a user