Skip to content

Commit

Permalink
[architecture] Add test for conversion from FlagsOperators to FlagsGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-durand committed Mar 19, 2017
1 parent db3efd7 commit 46a7275
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xpcc/architecture/interface/test/register_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ RegisterTest::testAssignments()
a0 = translateCommonArgument(c3);
TEST_ASSERT_EQUALS(a0, 0x42);

// flags operators to common struct
v0 = Test::A;
c0 = v0 | Test::C;
TEST_ASSERT_EQUALS(c0.value, 0b101);

// to register

// these are not possible!
Expand Down

0 comments on commit 46a7275

Please sign in to comment.