Commit 103bc4db by Jakub Jelinek

testsuite: Fix recently added ipa testcases [PR93763]

Seems the test has been badly reduced (if the original doesn't emit
warnings, it is always better in the reduction script avoid introducing new
ones).
Also, the g++.dg/ipa/ test fails with -std=c++98 because it is written in
C++11.

2020-02-25  Jakub Jelinek  <jakub@redhat.com>

	PR ipa/93763
	* gcc.dg/ipa/pr93763.c: Adjust the test so that it compiles without
	warnings and still ICEs before the ipa-cp.c fix.
	* g++.dg/ipa/pr93763.C: Require c++11 effective target.
parent 7b60f3ba
2020-02-25 Jakub Jelinek <jakub@redhat.com> 2020-02-25 Jakub Jelinek <jakub@redhat.com>
PR ipa/93763
* gcc.dg/ipa/pr93763.c: Adjust the test so that it compiles without
warnings and still ICEs before the ipa-cp.c fix.
* g++.dg/ipa/pr93763.C: Require c++11 effective target.
PR translation/93864 PR translation/93864
* objc.dg/encode-2.m: Fix comment typo paramter -> parameter. * objc.dg/encode-2.m: Fix comment typo paramter -> parameter.
* obj-c++.dg/encode-4.mm: Likewise. * obj-c++.dg/encode-4.mm: Likewise.
......
/* { dg-do compile } */ /* { dg-do compile { target c++11 } } */
/* { dg-options "-O3" } */ /* { dg-options "-O3" } */
struct search_param { struct search_param {
......
...@@ -3,44 +3,48 @@ ...@@ -3,44 +3,48 @@
typedef struct a a; typedef struct a a;
struct a { struct a {
a *b a *b;
} d; } d;
e, k, ah, al; int e, k, ah, al;
f(aa) { void h(void);
void
f(aa) int aa; {
if (aa & 1) if (aa & 1)
goto g; goto g;
f(aa | 2); f(aa | 2);
g: g:
h(); h();
} }
void i();
void
l() { l() {
{
f(072); f(072);
i(e, d, 92); i(e, d, 92);
}
} }
void
ag() { ag() {
{ i(e, d, 36); } i(e, d, 36);
} }
void j();
void
ai(a *m, a *n, unsigned aa) { ai(a *m, a *n, unsigned aa) {
f(aa); f(aa);
j(k, l, ah, 1); j(k, l, ah, 1);
} }
void
j(int c, a m, int aj, int aa) { j(int c, a m, int aj, int aa) {
int ak = aa; int ak = aa;
{ i(e,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*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*(*m).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b)
.b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b) .b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b)
.b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b) .b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b)
.b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b) .b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b)
.b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b, 0); .b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b).b, 0);
}
}
int am = aa; int am = aa;
ai(ag, al, am); ai((a *) (void *) ag, (a *) (__INTPTR_TYPE__) al, am);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment