aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/17_intro
diff options
context:
space:
mode:
authorScott Snyder <snyder@fnal.gov>2001-03-06 02:51:15 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2001-03-06 02:51:15 +0000
commit21aaf8bffcf05aec09db0213f8210cc205175141 (patch)
tree518dd91d1b892b105c6aaca28f36c27c65e32161 /libstdc++-v3/testsuite/17_intro
parentf283dc441464aa1604fb975ac74829bb9edeb2d2 (diff)
downloadgcc-21aaf8bffcf05aec09db0213f8210cc205175141.zip
gcc-21aaf8bffcf05aec09db0213f8210cc205175141.tar.gz
gcc-21aaf8bffcf05aec09db0213f8210cc205175141.tar.bz2
std_cmath.h: Move abs(long), div(long,long) from here...
2001-03-05 scott snyder <snyder@fnal.gov> libstdc++/2190 * include/c_std/bits/std_cmath.h: Move abs(long), div(long,long) from here... * include/c_std/bits/std_cstdlib.h: ... to here. * testsuite/17_intro/header_cstdlib.cc: Add test. From-SVN: r40254
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro')
-rw-r--r--libstdc++-v3/testsuite/17_intro/header_cstdlib.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc b/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc
index 3a4664e..5ce60cb 100644
--- a/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc
+++ b/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc
@@ -22,14 +22,25 @@
#include <cstdlib>
+// libstdc++/2190
+void test01()
+{
+ long a = std::abs(1L);
+ ldiv_t b = std::div(2L, 1L);
+}
-int main(void)
+void test02()
{
// Make sure size_t is in namespace std
std::size_t i = 5; // { dg-do compile }
- return 0;
}
+int main()
+{
+ test01();
+ test02();
+ return 0;
+}