Change-Id: I79e850e40b4e7d97f859b7ada8f1f6708ca3395f
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
noinst_PROGRAMS = \
regression/side-rcu-test \
unit/test \
+ unit/test-cxx \
unit/demo \
unit/statedump
$(top_builddir)/tests/utils/libtap.la \
$(RSEQ_LIBS)
+unit_test_cxx_SOURCES = unit/test-cxx.cpp
+unit_test_cxx_LDADD = \
+ $(top_builddir)/src/libside.la \
+ $(top_builddir)/tests/utils/libtap.la \
+ $(RSEQ_LIBS)
+
unit_demo_SOURCES = unit/demo.c
unit_demo_LDADD = \
$(top_builddir)/src/libside.la \
--- /dev/null
+/*
+ * Tests from C ought to work in C++. The pragmas are for ignoring the
+ * narrowing of `double' literal values to `FloatN' in the tests, which emitted
+ * warnings.
+ */
+#if defined(__GNUC__)
+#pragma GCC diagnostic ignored "-Wnarrowing"
+#endif
+#include "test.c"