From patchwork Sat Jun 11 15:37:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 100015 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 4063CB707A for ; Sun, 12 Jun 2011 01:37:47 +1000 (EST) Received: (qmail 17857 invoked by alias); 11 Jun 2011 15:37:42 -0000 Received: (qmail 17764 invoked by uid 22791); 11 Jun 2011 15:37:42 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Jun 2011 15:37:19 +0000 Received: by pzk36 with SMTP id 36so1718187pzk.20 for ; Sat, 11 Jun 2011 08:37:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.215.19 with SMTP id n19mr520863wfg.265.1307806638359; Sat, 11 Jun 2011 08:37:18 -0700 (PDT) Received: by 10.143.168.18 with HTTP; Sat, 11 Jun 2011 08:37:18 -0700 (PDT) Date: Sat, 11 Jun 2011 16:37:18 +0100 Message-ID: Subject: [v3] improve allocator_traits test From: Jonathan Wakely To: "libstdc++" , gcc-patches Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 2011-06-11 Jonathan Wakely * testsuite/20_util/allocator_traits/requirements/ explicit_instantiation.cc: Add another instantiation. Tested x86_64-linux, committed to trunk. Index: testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc =================================================================== --- testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc (revision 174931) +++ testsuite/20_util/allocator_traits/requirements/explicit_instantiation.cc (working copy) @@ -22,8 +22,21 @@ #include +typedef short test_type; + +template + struct minimal_allocator + { + typedef T value_type; + minimal_allocator(); + template + minimal_allocator(const minimal_allocator&); + T* allocate(std::size_t); + void deallocate(T*, std::size_t); + }; + namespace std { - typedef short test_type; template struct allocator_traits>; + template struct allocator_traits>; }