summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/guard_test_basic.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxxabi/test/guard_test_basic.pass.cpp')
-rw-r--r--libcxxabi/test/guard_test_basic.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/test/guard_test_basic.pass.cpp b/libcxxabi/test/guard_test_basic.pass.cpp
index e04d694c845..a325dd0b732 100644
--- a/libcxxabi/test/guard_test_basic.pass.cpp
+++ b/libcxxabi/test/guard_test_basic.pass.cpp
@@ -129,7 +129,7 @@ int main() {
#if defined(__APPLE__) || defined(__linux__)
assert(PlatformThreadID);
#endif
- if (+PlatformThreadID) {
+ if (PlatformSupportsThreadID()) {
assert(PlatformThreadID() != 0);
assert(PlatformThreadID() == PlatformThreadID());
}
OpenPOWER on IntegriCloud