From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7862) id 2E5B93843869; Fri, 11 Nov 2022 09:17:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E5B93843869 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668158244; bh=LIl8OrQDJq6epZW39weQMTh/i2g2eOOaaALcQzhyiwc=; h=From:To:Subject:Date:From; b=BZob3RfwVBV6rdcK4IrV89T9nzHdpK2o321E2f/tJ41pepIoXDw57FcBMBKBUUx4v k2atX2rYqN4KoCWVaFnkQal6Y1cW5/NMhIUbCZSDaelTcU/CCX8Q4cmAq6rdK6hkPc smmeoSAcZdVGNhLOMsSjE7cm04NsyLEd9k8MCesI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Bruno Larsen To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/testsuite: add XFAIL to gdb.cp/derivation.exp when using Clang X-Act-Checkin: binutils-gdb X-Git-Author: Bruno Larsen X-Git-Refname: refs/heads/master X-Git-Oldrev: 3180839c4bee41b8dea76f1e2d19203cd76c0fa0 X-Git-Newrev: 42dde3f3643cdf372b8f40beafa3f2c888aaf92a Message-Id: <20221111091724.2E5B93843869@sourceware.org> Date: Fri, 11 Nov 2022 09:17:22 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D42dde3f3643c= df372b8f40beafa3f2c888aaf92a commit 42dde3f3643cdf372b8f40beafa3f2c888aaf92a Author: Bruno Larsen Date: Thu Sep 8 10:43:14 2022 +0200 gdb/testsuite: add XFAIL to gdb.cp/derivation.exp when using Clang =20 When running gdb.cp/derivation.exp using Clang, we get an unexpected failure when printing the type of a class with an internal typedef. This happens because Clang doesn't add accessibility information for typedefs inside classes (see https://github.com/llvm/llvm-project/issues/57608 for more info). To help with Clang testing, an XFAIL was added to this test. =20 Approved-by: Tom Tromey Diff: --- gdb/testsuite/gdb.cp/derivation.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/der= ivation.exp index c95fef004b5..f49ab208ac9 100644 --- a/gdb/testsuite/gdb.cp/derivation.exp +++ b/gdb/testsuite/gdb.cp/derivation.exp @@ -77,6 +77,10 @@ gdb_test "up" ".*main.*" "up from marker1" =20 gdb_test "print a_instance" "\\$\[0-9\]+ =3D \{a =3D 1, aa =3D 2\}" "print= value of a_instance" =20 +# Clang does not add accessibility information for typedefs inside classes. +if {[test_compiler_info {clang*} c++]} { + setup_xfail "clang 57608" *-*-* +} cp_test_ptype_class \ "a_instance" "" "class" "A" \ {