blob: 052d97c7fc2574fab1a8f1fe407fa924a9a35872 [file] [log] [blame]
/* PR middle-end/90025 */
__attribute__((noipa)) void
bar (char *p)
{
int i;
for (i = 0; i < 6; i++)
if (p[i] != "foobar"[i])
__builtin_abort ();
for (; i < 32; i++)
if (p[i] != '\0')
__builtin_abort ();
}
__attribute__((noipa)) void
foo (__UINT32_TYPE__ x)
{
char s[32] = { 'f', 'o', 'o', 'b', 'a', 'r', 0 };
((__UINT32_TYPE__ *) s)[2] = __builtin_bswap32 (x);
bar (s);
}
int
main ()
{
foo (0);
return 0;
}