From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32671 invoked by alias); 18 Aug 2014 23:23:28 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32661 invoked by uid 89); 18 Aug 2014 23:23:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f201.google.com Received: from mail-qc0-f201.google.com (HELO mail-qc0-f201.google.com) (209.85.216.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 18 Aug 2014 23:23:27 +0000 Received: by mail-qc0-f201.google.com with SMTP id c9so691407qcz.2 for ; Mon, 18 Aug 2014 16:23:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=dfstjRoHqtu68AlnlYvEXDxUU611GDO7cIfZ5oYFgII=; b=R27+9p3Kahr8C+ALikAvoaoJgk/VKwPEUrVRc7CXNpnTFRaFHQmDUMuZzBn930U/Tm tErE/cgoKHsk1IqEJxAMFrRVOqyu2ORWEEYFYOiprz/rrzQ8Td4KYUFX7Mt8z1/PTLMO nYF1Bb1O5/Umx35aZjsQqa64VlHC97aFVHeK7yNkSDYzcxbyzbao9nkGfiQvy2qMaFou FdUOHHC2x0FUy6IYy/GP0F9IMRPGeVUk7KaSHszRddcPTrs3oFctU/QY7BH1Gl0lQafB JW3izjK/GTKgDFzlfCfxGPhylGL8biWkwtLnujbfjh2mF1Pohm26O5zfOYROfM0Dmksf tqMA== X-Gm-Message-State: ALoCoQkoCU2vB57IIwJpidU3Cu0+zMhmURrbaY+UJs5bsIGk+fjPw4W+Fu1LV3S2iL1gESXSEszZEui95UXXDqeVlMnHrj4LxcFtckoH6bHpL7+1NB4r4M95Kyropf1pbSx69nZuIYYv X-Received: by 10.236.191.37 with SMTP id f25mr16658153yhn.44.1408404204727; Mon, 18 Aug 2014 16:23:24 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id y50si151149yhk.4.2014.08.18.16.23.24 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Aug 2014 16:23:24 -0700 (PDT) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.17.128.44]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTPS id 7523A5A4517 for ; Mon, 18 Aug 2014 16:23:24 -0700 (PDT) From: Doug Evans To: gdb-patches@sourceware.org Subject: [RFC] delete gdb.cp/ambiguous.exp ? Date: Mon, 18 Aug 2014 23:23:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00323.txt.bz2 Along the lines of dead code removal ... What should we do with this testcase? The messages it is looking for from gdb do not exist, but the whole thing is not run for gcc anyway. I ask because if we choose to not delete the testcase then I will need to add a similar escape for clang. # tests relating to ambiguous class members # Written by Satish Pai 1997-07-28 ... if { [test_compiler_info gcc-*] } then { continue } ... # print out various class objects' members. The values aren't # important, just check that the warning is emitted at the # right times. # X is derived from A1 and A2; both A1 and A2 have a member 'x' send_gdb "print x.x\n" gdb_expect { -re "warning: x ambiguous; using X::A2::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" { pass "print x.x" } -re "warning: x ambiguous; using X::A1::x. Use a cast to disambiguate.\r\n\\$\[0-9\]* = \[-\]*\[0-9\]*\r\n$gdb_prompt $" { pass "print x.x" } -re ".*$gdb_prompt $" { fail "print x.x" } timeout { fail "(timeout) print x.x" } }