summaryrefslogtreecommitdiffstats
path: root/src/usr/testcore/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/testcore/lib')
-rw-r--r--src/usr/testcore/lib/integral.H15
-rw-r--r--src/usr/testcore/lib/makefile5
2 files changed, 18 insertions, 2 deletions
diff --git a/src/usr/testcore/lib/integral.H b/src/usr/testcore/lib/integral.H
index 74750582e..bead1c03f 100644
--- a/src/usr/testcore/lib/integral.H
+++ b/src/usr/testcore/lib/integral.H
@@ -82,6 +82,21 @@ class STLIntegralTest : public CxxTest::TestSuite
TS_FAIL("false_type is not false.");
}
}
+
+ void testTypes()
+ {
+ if (!std::is_same<std::true_type,
+ std::integral_constant<bool, true> >::value)
+ {
+ TS_FAIL("true_type and integral_constant<bool, true> are not the same type.");
+ }
+
+ if (!std::is_same<std::false_type,
+ std::integral_constant<bool, false> >::value)
+ {
+ TS_FAIL("true_type and integral_constant<bool, false> are not the same type.");
+ }
+ }
};
#endif
diff --git a/src/usr/testcore/lib/makefile b/src/usr/testcore/lib/makefile
index ea4b74ee4..35c3a3895 100644
--- a/src/usr/testcore/lib/makefile
+++ b/src/usr/testcore/lib/makefile
@@ -27,11 +27,12 @@ ROOTPATH = ../../../..
MODULE = testsyslib
#@TODO-RTC:151185-Turn enable all test cases
#TESTS = *.H
-TESTS = stltest.H
#TODO RTC:204720
#TESTS += synctest.H
-TESTS += tls.H
+TESTS = stltest.H
+TESTS += tls.H
+TESTS += integral.H
SUBDIRS += runtime.d
include ${ROOTPATH}/config.mk
OpenPOWER on IntegriCloud