Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libdredd/src/mutate_ast_consumer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ std::string MutateAstConsumer::GetRegularDreddPreludeC(
result << "#elif __APPLE__\n";
result << "#define thread_local __thread\n";
result << "#else\n";
result << "#include <threads.h>\n";
result << "#define thread_local _Thread_local\n";
result << "#endif\n";
result << "\n";
result << "static thread_local int __dredd_some_mutation_enabled = 1;\n";
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/add.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/add.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/add_float.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/add_float.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/add_mul.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/add_mul.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/add_type_aliases.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/assign.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/assign.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/basic.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/basic.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/binary_operands_both_zero.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/bitfield.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/bitfield.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/comma.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/comma.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/comma_initialization.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/comma_initialization.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/comma_side_effects.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/comma_side_effects.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/const_sized_array_int.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/const_sized_array_int.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/define_at_start_of_file.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/define_at_start_of_file.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/define_in_first_decl.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/define_in_first_decl.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/do_not_mutate_under_sizeof.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/enum.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/expr_lvalue.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/expr_lvalue.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/expr_macro.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/expr_macro.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/float_binary_opts.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/float_binary_opts.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/float_unary_opt.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/float_unary_opt.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/floats.c.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
2 changes: 1 addition & 1 deletion test/single_file/floats.c.noopt.expected
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#elif __APPLE__
#define thread_local __thread
#else
#include <threads.h>
#define thread_local _Thread_local
#endif

static thread_local int __dredd_some_mutation_enabled = 1;
Expand Down
Loading
Loading