Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 68158 invoked from network); 6 Mar 2007 19:29:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2007 19:29:13 -0000 Received: (qmail 83461 invoked by uid 500); 6 Mar 2007 19:29:22 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 83449 invoked by uid 500); 6 Mar 2007 19:29:22 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 83438 invoked by uid 99); 6 Mar 2007 19:29:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 11:29:22 -0800 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2007 11:29:12 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 909F11A9838; Tue, 6 Mar 2007 11:28:52 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r515262 - /incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp Date: Tue, 06 Mar 2007 19:28:52 -0000 To: stdcxx-commits@incubator.apache.org From: sebor@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070306192852.909F11A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebor Date: Tue Mar 6 11:28:51 2007 New Revision: 515262 URL: http://svn.apache.org/viewvc?view=rev&rev=515262 Log: 2007-03-06 Martin Sebor * 18.limits.traps.cpp (try_trap): Renamed from test_trap and declared extern in order to allow it to be found by argument dependent lookup. Modified: incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp Modified: incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp?view=diff&rev=515262&r1=515261&r2=515262 ============================================================================== --- incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp (original) +++ incubator/stdcxx/trunk/tests/support/18.limits.traps.cpp Tue Mar 6 11:28:51 2007 @@ -1,21 +1,28 @@ /*************************************************************************** * - * 18/limits_traps.cpp - test exercising std::numeric_limits::traps + * 18.limits_traps.cpp - test exercising std::numeric_limits::traps * * $Id$ * *************************************************************************** * - * Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave - * Software division. Licensed under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0. Unless required by - * applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR - * CONDITIONS OF ANY KIND, either express or implied. See the License - * for the specific language governing permissions and limitations under - * the License. + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. See the License for the specific language governing + * permissions and limitations under the License. + * + * Copyright 2005-2006 Rogue Wave Software. * **************************************************************************/ @@ -83,8 +90,8 @@ template -static inline void -test_trap (const volatile numT &one, const volatile numT &zero, +inline void +try_trap (const volatile numT &one, const volatile numT &zero, numT &result, bool &trapped) { TRY { @@ -96,6 +103,7 @@ } } + template numT test_traps (numT, int lineno, bool) { @@ -145,7 +153,7 @@ // signal hanlder above and execution will resume by // returning from setjmp() above again, but this time // with a non-zero value - test_trap (one, zero, result, trapped); + try_trap (one, zero, result, trapped); } rw_assert (trapped == traps, 0, lineno,