-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AArch64 support to persistent<T>, and a unit test.
- Loading branch information
Showing
6 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time | ||
#define QUICKCPPLIB_PREVIOUS_COMMIT_REF ee857b538ad751186d5d6b477a7784c15a0b071d | ||
#define QUICKCPPLIB_PREVIOUS_COMMIT_DATE "2018-03-28 08:43:17 +00:00" | ||
#define QUICKCPPLIB_PREVIOUS_COMMIT_UNIQUE ee857b53 | ||
#define QUICKCPPLIB_PREVIOUS_COMMIT_REF 83c0b0ba559bd748393b9d534dff0dd421e66740 | ||
#define QUICKCPPLIB_PREVIOUS_COMMIT_DATE "2018-04-05 20:09:59 +00:00" | ||
#define QUICKCPPLIB_PREVIOUS_COMMIT_UNIQUE 83c0b0ba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* Test persistent | ||
(C) 2018 Niall Douglas <http://www.nedproductions.biz/> (4 commits) | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License in the accompanying file | ||
Licence.txt or at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
Distributed under the Boost Software License, Version 1.0. | ||
(See accompanying file Licence.txt or copy at | ||
http://www.boost.org/LICENSE_1_0.txt) | ||
*/ | ||
|
||
#include "../include/boost/test/unit_test.hpp" | ||
#include "../include/persistent.hpp" | ||
|
||
BOOST_AUTO_TEST_SUITE(persistence) | ||
|
||
BOOST_AUTO_TEST_CASE(persistence / works, "Tests that persistent<T> works as advertised") | ||
{ | ||
QUICKCPPLIB_NAMESPACE::persistence::persistent<int> v(5); | ||
v.store(6); | ||
BOOST_CHECK(v == 6); | ||
} | ||
|
||
BOOST_AUTO_TEST_SUITE_END() |