summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/alpha/pr42774.c
blob: 65688002b3a973dca4cf4fb6ba66ef1d9cf0228d (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=ev4" } */

unsigned int ntfs_getinfo(void *p)
{
    char bootsect[8];

    __builtin_memcpy(bootsect, p, sizeof bootsect);
    return *(unsigned short *)(bootsect + 3);
}