pr58830.c: New testcase.
2013-10-23 Richard Biener <rguenther@suse.de> * gcc.dg/torture/pr58830.c: New testcase. From-SVN: r203957
This commit is contained in:
parent
1a0e9d1cb9
commit
49ed1a4693
|
@ -1,3 +1,7 @@
|
||||||
|
2013-10-23 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
* gcc.dg/torture/pr58830.c: New testcase.
|
||||||
|
|
||||||
2013-10-23 Edward Smith-Rowland <3dw4rd@verizon.net>
|
2013-10-23 Edward Smith-Rowland <3dw4rd@verizon.net>
|
||||||
|
|
||||||
Implement C++14 [[deprecated]] modulo [[gnu::deprecated]] bugs.
|
Implement C++14 [[deprecated]] modulo [[gnu::deprecated]] bugs.
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
/* { dg-do run } */
|
||||||
|
/* { dg-additional-options "-ftree-pre -ftree-partial-pre" } */
|
||||||
|
|
||||||
|
extern void abort (void);
|
||||||
|
|
||||||
|
int b, c, d, f, g, h, i, j[6], *l = &b, *m, n, *o, r;
|
||||||
|
char k;
|
||||||
|
|
||||||
|
static int
|
||||||
|
foo ()
|
||||||
|
{
|
||||||
|
char *p = &k;
|
||||||
|
|
||||||
|
for (; d; d++)
|
||||||
|
if (i)
|
||||||
|
h = 0;
|
||||||
|
else
|
||||||
|
h = c || (r = 0);
|
||||||
|
|
||||||
|
for (f = 0; f < 2; f++)
|
||||||
|
{
|
||||||
|
unsigned int q;
|
||||||
|
*l = 0;
|
||||||
|
if (n)
|
||||||
|
*m = g;
|
||||||
|
if (g)
|
||||||
|
o = 0;
|
||||||
|
for (q = -8; q >= 5; q++)
|
||||||
|
(*p)--;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
foo ();
|
||||||
|
if (j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[j[0]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] ^ (k & 15)] != 0)
|
||||||
|
abort ();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue