diff options
author | Martin Sebor <msebor@redhat.com> | 2021-05-04 11:10:40 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-05-04 11:10:40 -0600 |
commit | 78624756f7cfa3870c4b8c4c383bca1c9cbb6918 (patch) | |
tree | 03b37caac99a62857fe8b0244dd4f4a9d07ec380 | |
parent | 141cce5c2cc16b6846417790dfa01f61389ddbb3 (diff) | |
download | gcc-78624756f7cfa3870c4b8c4c383bca1c9cbb6918.zip gcc-78624756f7cfa3870c4b8c4c383bca1c9cbb6918.tar.gz gcc-78624756f7cfa3870c4b8c4c383bca1c9cbb6918.tar.bz2 |
Adjust strings in dg-warning directives (PR testsuite/100412).
gcc/testsuite/ChangeLog:
* gcc.dg/Wvla-parameter-3.c: Use unique strings in directive names.
-rw-r--r-- | gcc/testsuite/gcc.dg/Wvla-parameter-3.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/testsuite/gcc.dg/Wvla-parameter-3.c b/gcc/testsuite/gcc.dg/Wvla-parameter-3.c index 51f0172..f1cf139 100644 --- a/gcc/testsuite/gcc.dg/Wvla-parameter-3.c +++ b/gcc/testsuite/gcc.dg/Wvla-parameter-3.c @@ -25,19 +25,19 @@ void ppax (int (**)[*]); // { dg-message "previously declared as void ppax (int (**)[n]); // { dg-warning "\\\[-Wvla-parameter" } /* A VLA with an unspecified bound is represented the same as [0] so so the pretty printer can't differentiate between the two forms. */ -void ppax (int (**)[1]); // { dg-bogus "\\\[-Warray-parameter" "pr?????" { xfail *-*-* } } - // { dg-warning "\\\[-Wvla-parameter" "pr?????" { xfail *-*-* } .-1 } +void ppax (int (**)[1]); // { dg-bogus "\\\[-Warray-parameter" "pr100420 (expected)" { xfail *-*-* } } + // { dg-warning "\\\[-Wvla-parameter" "pr100420 (expected)" { xfail *-*-* } .-1 } void ppax (int (**)[n + 1]); // { dg-warning "mismatch in bound 1 of argument 1 declared as 'int *\\\(\\\*\\\*\\\)\\\[n \\\+ 1\\\]'" } void pa1_n (int (*)[1][n]); void pa1_n (int (*)[1][n]); -void pa1_n (int (*)[*][n]); // { dg-warning "mismatch in bound 1 of argument 1 declared as 'int \\\(\\\*\\\)\\\[\\\*]\\\[n]'" "pr?????" { xfail *-*-*} } - // { dg-warning "mismatch in bound 1 of argument 1 declared as 'int \\\(\\\*\\\)\\\[0]\\\[n]'" "pr?????" { target *-*-* } .-1 } +void pa1_n (int (*)[*][n]); // { dg-warning "mismatch in bound 1 of argument 1 declared as 'int \\\(\\\*\\\)\\\[\\\*]\\\[n]'" "pr100420 (expected)" { xfail *-*-*} } + // { dg-warning "mismatch in bound 1 of argument 1 declared as 'int \\\(\\\*\\\)\\\[0]\\\[n]'" "pr100420" { target *-*-* } .-1 } void pa1_n_2 (int (*)[1][n][2]); -void pa1_n_2 (int (*)[1][n][*]); // { dg-warning "mismatch in bound 3 of argument 1 declared as 'int \\\(\\\*\\\)\\\[1]\\\[n]\\\[\\\*]'" "pr?????" { xfail *-*-* } } - // { dg-warning "mismatch in bound 3 of argument 1 declared as 'int \\\(\\\*\\\)\\\[1]\\\[n]\\\[0]'" "pr?????" { target *-*-* } .-1 } +void pa1_n_2 (int (*)[1][n][*]); // { dg-warning "mismatch in bound 3 of argument 1 declared as 'int \\\(\\\*\\\)\\\[1]\\\[n]\\\[\\\*]'" "pr100420 (expected)" { xfail *-*-* } } + // { dg-warning "mismatch in bound 3 of argument 1 declared as 'int \\\(\\\*\\\)\\\[1]\\\[n]\\\[0]'" "pr100420" { target *-*-* } .-1 } void pa1_n_2_a1_n_2 (int (*)[1][n][2], int (*)[1][n][2]); |