diff options
Diffstat (limited to 'libstdc++-v3/testsuite/17_intro/header_cstdlib.cc')
-rw-r--r-- | libstdc++-v3/testsuite/17_intro/header_cstdlib.cc | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc b/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc index 3a4664e6779..32827cfbca0 100644 --- a/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc +++ b/libstdc++-v3/testsuite/17_intro/header_cstdlib.cc @@ -22,14 +22,22 @@ #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; + std::size_t i = 5; } - - - +int main() +{ + test01(); + test02(); + return 0; +} |