diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-22 21:46:17 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-22 21:46:17 +0000 |
commit | ec54e51fed3fd5b1c271e9387fa57b214c3325b2 (patch) | |
tree | 770d6b28b79543c7cb65dfc5ae3aa98a5eae8284 /libstdc++-v3/testsuite/20_util/ratio | |
parent | 203d330728846e216bc8c34bc1674b852e701f71 (diff) | |
download | gcc-ec54e51fed3fd5b1c271e9387fa57b214c3325b2.tar.gz |
2011-06-22 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/20_util/reference_wrapper/invoke.cc: Avoid -Wall warnings.
* testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
* testsuite/20_util/reference_wrapper/invoke-2.cc: Likewise.
* testsuite/20_util/allocator_traits/members/allocate_hint.cc:
Likewise.
* testsuite/20_util/ratio/operations/ops_overflow_neg.cc: Likewise.
* testsuite/20_util/bind/socket.cc: Likewise.
* testsuite/20_util/pointer_traits/pointer_to.cc: Likewise.
* testsuite/util/testsuite_random.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175318 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/20_util/ratio')
-rw-r--r-- | libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc b/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc index 0e36c741846..7483016b616 100644 --- a/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc +++ b/libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc @@ -26,19 +26,22 @@ void test01() { - std::ratio_add<std::ratio<INTMAX_MAX, 1>, std::ratio<1>>::type r1; + std::ratio_add<std::ratio<INTMAX_MAX, 1>, std::ratio<1>>::type r1 + __attribute__((unused)); } void test02() { - std::ratio_multiply<std::ratio<-INTMAX_MAX, 2>, std::ratio<3, 2>>::type r1; - std::ratio_multiply<std::ratio<INTMAX_MAX>, std::ratio<INTMAX_MAX>>::type r2; + std::ratio_multiply<std::ratio<-INTMAX_MAX, 2>, std::ratio<3, 2>>::type r1 + __attribute__((unused)); + std::ratio_multiply<std::ratio<INTMAX_MAX>, std::ratio<INTMAX_MAX>>::type r2 + __attribute__((unused)); } // { dg-error "required from here" "" { target *-*-* } 29 } -// { dg-error "required from here" "" { target *-*-* } 35 } // { dg-error "required from here" "" { target *-*-* } 36 } +// { dg-error "required from here" "" { target *-*-* } 38 } // { dg-error "overflow in addition" "" { target *-*-* } 432 } // { dg-error "overflow in multiplication" "" { target *-*-* } 104 } // { dg-error "overflow in multiplication" "" { target *-*-* } 100 } |