From 27003baf129d86edfead0371d7f615070be51dd4 Mon Sep 17 00:00:00 2001 From: Bryce Adelstein-Lelbach Date: Fri, 14 Jan 2011 02:59:34 +0000 Subject: [PATCH] Pathscale-4.0 configuration code/workarounds. [SVN r68142] --- test/bind_cv_test.cpp | 6 ++++++ test/bind_stateful_test.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/test/bind_cv_test.cpp b/test/bind_cv_test.cpp index 55c2472..257aaa9 100644 --- a/test/bind_cv_test.cpp +++ b/test/bind_cv_test.cpp @@ -33,6 +33,12 @@ struct X { + // SGI-related compilers have odd compiler-synthesized ctors dtors + #ifdef __PATHSCALE__ + X() {} + ~X() {} + #endif + int operator()() { return 17041; diff --git a/test/bind_stateful_test.cpp b/test/bind_stateful_test.cpp index b57ea59..04fc0e8 100644 --- a/test/bind_stateful_test.cpp +++ b/test/bind_stateful_test.cpp @@ -43,6 +43,11 @@ public: { } + // SGI-related compilers have odd compiler-synthesized ctors and dtors + #ifdef __PATHSCALE__ + ~X() {} + #endif + int state() const { return state_;