Commit e4b8a410 by Andrew Pinski Committed by Andrew Pinski

20140828-1.c: New testcase.

2014-08-30  Andrew Pinski  <apinski@cavium.com>

        * gcc.c-torture/execute/20140828-1.c: New testcase.

From-SVN: r214760
parent 695326ef
2014-08-30 Andrew Pinski <apinski@cavium.com>
* gcc.c-torture/execute/20140828-1.c: New testcase.
2014-08-29 DJ Delorie <dj@redhat.com>
* lib/target-supports.exp (check_effective_target_size32plus):
......
short *f(short *a, int b, int *d) __attribute__((noinline,noclone));
short *f(short *a, int b, int *d)
{
short c = *a;
a++;
c = b << c;
*d = c;
return a;
}
int main(void)
{
int d;
short a[2];
a[0] = 0;
if (f(a, 1, &d) != &a[1])
__builtin_abort ();
if (d != 1)
__builtin_abort ();
return 0;
}
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