We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9508653 commit 3c16f84Copy full SHA for 3c16f84
tests/main.cpp
@@ -34,27 +34,13 @@ TestInfo g_tests[] =
34
ADD_TEST(testDiningPhilosophers)
35
};
36
37
-#include "bitfield.h"
38
- BEGIN_BITFIELD_TYPE(Status, uint32_t)
39
- ADD_BITFIELD_ARRAY(philos, 0, 4, 8)
40
- END_BITFIELD_TYPE()
41
-
42
- __declspec(noinline) void foo(Status& s, int index)
43
- {
44
- s.philos[index] = 7;
45
- }
46
47
//---------------------------------------------------------
48
// main
49
50
int main()
51
{
52
bool allTestsPassed = true;
53
54
- Status s;
55
- foo(s, 5);
56
- std::cout << Status().philos.maximum() << std::endl;
57
58
for (const TestInfo& test : g_tests)
59
60
std::cout << "Running " << test.name << "...";
0 commit comments