aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2023-02-15 00:28:35 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2023-02-16 10:47:59 +0000
commit74913f718b077be5ecdda5ac403f19839ed454f4 (patch)
treeb8b969c03b5acaeab01953c29472e6c71a31eeb0 /gcc/rust/backend
parentb4d7468658729b16583968026ed6a0168606ab40 (diff)
downloadgcc-74913f718b077be5ecdda5ac403f19839ed454f4.zip
gcc-74913f718b077be5ecdda5ac403f19839ed454f4.tar.gz
gcc-74913f718b077be5ecdda5ac403f19839ed454f4.tar.bz2
Fix up DejaGnu directives in 'rust/compile/issue-1830_{bytes,str}.rs' test cases [#1838]
'dg-excess-errors' "indicates that the test is expected to fail due to compiler messages that are not handled by 'dg-error', [etc.]". It's argument doesn't specify the message to match but just just a comment. Here, however, we'd like to match specific compiler messages, so we should use 'dg-error', etc. Use the magic line number zero as the compiler error diagnostic doesn't tell which line the error occurred on (separate issue to resolve). This gives us: -XFAIL: rust/compile/issue-1830_str.rs (test for excess errors) +PASS: rust/compile/issue-1830_bytes.rs at line 8 (test for errors, line ) +PASS: rust/compile/issue-1830_bytes.rs (test for excess errors) -XFAIL: rust/compile/issue-1830_bytes.rs (test for excess errors) +PASS: rust/compile/issue-1830_str.rs at line 8 (test for errors, line ) +PASS: rust/compile/issue-1830_str.rs (test for excess errors) Fix-up for recent GCC/Rust master branch #1838 commit cf9ed4001eec6a22686d19a13f7de8ac94f9cb2a "testsuite: Add empty string macro test". gcc/testsuite/ * rust/compile/issue-1830_bytes.rs: Fix up DejaGnu directives. * rust/compile/issue-1830_str.rs: Likewise.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions