From 8daf280f7d24a3f5b2c553bb39ceda4d0fd32736 Mon Sep 17 00:00:00 2001 From: Andre Marin Date: Sun, 24 Mar 2019 15:01:30 -0500 Subject: Fix true_type and false_ type typdef with integral_constant Change-Id: Ie1a432be0d1b2a59a0e0521f251d6bdf8a11ac70 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/74942 Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes --- src/usr/testcore/lib/integral.H | 15 +++++++++++++++ src/usr/testcore/lib/makefile | 5 +++-- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'src/usr/testcore/lib') 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 >::value) + { + TS_FAIL("true_type and integral_constant are not the same type."); + } + + if (!std::is_same >::value) + { + TS_FAIL("true_type and integral_constant 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 -- cgit v1.2.1