Skip to content

Commit 4401650

Browse files
committed
make sure c++11 is available for tests
1 parent dffaa14 commit 4401650

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

libhdt/tests/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
check_PROGRAMS = \
22
bit375 \
33
bitutiltest \
4+
c11 \
45
listener \
56
logarr \
67
serd \

libhdt/tests/c11.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <tuple>
2+
3+
int
4+
main(int argc, char **argv)
5+
{
6+
std::tuple<int, int> t = { 1, 1};
7+
std::tuple<int, int> u;
8+
t.swap(u);
9+
return 0;
10+
}

0 commit comments

Comments
 (0)