diff options
author | Bruno Larsen <blarsen@redhat.com> | 2022-09-08 10:43:14 +0200 |
---|---|---|
committer | Bruno Larsen <blarsen@redhat.com> | 2022-11-11 10:13:36 +0100 |
commit | 42dde3f3643cdf372b8f40beafa3f2c888aaf92a (patch) | |
tree | db85518e7bbdd11e8067cc3211bf67b4d44aa4c7 /gdb/testsuite/gdb.cp/derivation.exp | |
parent | 3180839c4bee41b8dea76f1e2d19203cd76c0fa0 (diff) | |
download | gdb-42dde3f3643cdf372b8f40beafa3f2c888aaf92a.zip gdb-42dde3f3643cdf372b8f40beafa3f2c888aaf92a.tar.gz gdb-42dde3f3643cdf372b8f40beafa3f2c888aaf92a.tar.bz2 |
gdb/testsuite: add XFAIL to gdb.cp/derivation.exp when using Clang
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.
Approved-by: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.cp/derivation.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/derivation.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/derivation.exp index c95fef0..f49ab20 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" gdb_test "print a_instance" "\\$\[0-9\]+ = \{a = 1, aa = 2\}" "print value of a_instance" +# 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" \ { |