Changeset View
Changeset View
Standalone View
Standalone View
intern/atomic/tests/atomic_test.cc
| /* Apache License, Version 2.0 */ | /* Apache License, Version 2.0 */ | ||||
| #include <limits> | #include <limits> | ||||
| #include "atomic_ops.h" | #include "atomic_ops.h" | ||||
| #include "testing/testing.h" | #include "testing/testing.h" | ||||
| #ifdef __GNUC__ | #ifdef __GNUC__ | ||||
| # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */ | |||||
| # pragma GCC diagnostic error "-Wsign-compare" | # pragma GCC diagnostic error "-Wsign-compare" | ||||
| # endif | |||||
| # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 | |||||
| # pragma GCC diagnostic error "-Wsign-conversion" | # pragma GCC diagnostic error "-Wsign-conversion" | ||||
| # endif | #endif | ||||
| #endif | |||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name 64 bit unsigned int atomics | /** \name 64 bit unsigned int atomics | ||||
| * \{ */ | * \{ */ | ||||
| TEST(atomic, atomic_add_and_fetch_uint64) | TEST(atomic, atomic_add_and_fetch_uint64) | ||||
| { | { | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,085 Lines • Show Last 20 Lines | |||||