Commit 46a16203 by DJ Delorie Committed by DJ Delorie

* gcc.c-torture/execute/pr65369.c: Don't assume int is 32 bits.

From-SVN: r223851
parent 384d8786
2015-05-28 DJ Delorie <dj@redhat.com>
* gcc.c-torture/execute/pr65369.c: Don't assume int is 32 bits.
2015-05-28 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/discr43.adb: New test.
......
/* PR tree-optimization/65369 */
#include <stdint.h>
static const char data[] =
"12345678901234567890123456789012345678901234567890"
......@@ -14,7 +15,7 @@ static void foo (const unsigned int *buf)
__attribute__ ((noinline))
static void bar (const unsigned char *block)
{
unsigned int buf[16];
uint32_t buf[16];
__builtin_memcpy (buf + 0, block + 0, 4);
__builtin_memcpy (buf + 1, block + 4, 4);
__builtin_memcpy (buf + 2, block + 8, 4);
......
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