From patchwork Wed Sep 28 23:14:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 116867 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 178231007D5 for ; Thu, 29 Sep 2011 09:16:30 +1000 (EST) Received: (qmail 24451 invoked by alias); 28 Sep 2011 23:16:27 -0000 Received: (qmail 24443 invoked by uid 22791); 28 Sep 2011 23:16:27 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp207.alice.it (HELO smtp207.alice.it) (82.57.200.103) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Sep 2011 23:16:13 +0000 Received: from [192.168.1.4] (79.56.212.46) by smtp207.alice.it (8.5.124.08) id 4DFA189A093B23FC for gcc-patches@gcc.gnu.org; Thu, 29 Sep 2011 01:16:11 +0200 Message-ID: <4E83AA73.3020003@oracle.com> Date: Thu, 29 Sep 2011 01:14:59 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110922 Thunderbird/7.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ testcase, committed as obvious] PR 40145 X-IsSubscribed: yes 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 Hi, tested x86_64-linux, committed. Paolo. ////////////////// 2011-09-28 Paolo Carlini PR c++/40145 * g++.dg/ext/visibility/warn5.C: New. Index: g++.dg/ext/visibility/warn5.C =================================================================== --- g++.dg/ext/visibility/warn5.C (revision 0) +++ g++.dg/ext/visibility/warn5.C (revision 0) @@ -0,0 +1,11 @@ +// PR c++/40145 +// { dg-do compile } +// { dg-require-visibility "" } +// { dg-options "-fvisibility=hidden" } + +struct EditorInternalCommand { }; + +static void createCommandMap() +{ + struct CommandEntry { EditorInternalCommand command; }; +}