Skip to content

Commit

Permalink
Update single file tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLee-Jones committed Jul 16, 2024
1 parent 4d0876d commit 4a895bd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions test/single_file/bitfield_reference_passing.cc.expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
template<typename T> void bloop(T& x) { }

struct foo {
int b : 2;
};

#include <cinttypes>
#include <cstddef>
#include <functional>
Expand Down Expand Up @@ -42,12 +48,6 @@ static bool __dredd_enabled_mutation(int local_mutation_id) {
return (enabled_bitset[local_mutation_id / 64] & (static_cast<uint64_t>(1) << (local_mutation_id % 64))) != 0;
}

template<typename T> void bloop(T& x) { }

struct foo {
int b : 2;
};

int main() {
const foo d = foo();
if (!__dredd_enabled_mutation(0)) { bloop(d.b); }
Expand Down
12 changes: 6 additions & 6 deletions test/single_file/bitfield_reference_passing.cc.noopt.expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
template<typename T> void bloop(T& x) { }

struct foo {
int b : 2;
};

#include <cinttypes>
#include <cstddef>
#include <functional>
Expand Down Expand Up @@ -42,12 +48,6 @@ static bool __dredd_enabled_mutation(int local_mutation_id) {
return (enabled_bitset[local_mutation_id / 64] & (static_cast<uint64_t>(1) << (local_mutation_id % 64))) != 0;
}

template<typename T> void bloop(T& x) { }

struct foo {
int b : 2;
};

int main() {
const foo d = foo();
if (!__dredd_enabled_mutation(0)) { bloop(d.b); }
Expand Down
10 changes: 5 additions & 5 deletions test/single_file/new_expr_array_size.cc.expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
class foo {
public:
foo(int x) {}
};

#include <cinttypes>
#include <cstddef>
#include <functional>
Expand Down Expand Up @@ -52,11 +57,6 @@ static int __dredd_replace_expr_int_constant(int arg, int local_mutation_id) {
return arg;
}

class foo {
public:
foo(int x) {}
};

int main() {
if (!__dredd_enabled_mutation(10)) { new foo[2]{__dredd_replace_expr_int_constant(4, 0), __dredd_replace_expr_int_constant(5, 5)}; }
}
10 changes: 5 additions & 5 deletions test/single_file/new_expr_array_size.cc.noopt.expected
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
class foo {
public:
foo(int x) {}
};

#include <cinttypes>
#include <cstddef>
#include <functional>
Expand Down Expand Up @@ -53,11 +58,6 @@ static int __dredd_replace_expr_int(int arg, int local_mutation_id) {
return arg;
}

class foo {
public:
foo(int x) {}
};

int main() {
if (!__dredd_enabled_mutation(12)) { new foo[2]{__dredd_replace_expr_int(4, 0), __dredd_replace_expr_int(5, 6)}; }
}

0 comments on commit 4a895bd

Please sign in to comment.