// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
struct B {int x, y, z, w;} b;struct__attribute__((packed)) A {struct B b;} a;typedef__typeof__(sizeof(int))size_t;void*memcpy(void*dest,constvoid*src,size_tn);intmemcmp(constvoid*s1,constvoid*s2,size_tn);void*memmove(void*dest,constvoid*src,size_tn);void*memset(void*s,intc,size_tn);int x;voidfoo(void){memcpy(&a.b,&b,sizeof(b));memmove(&a.b,&b,sizeof(b));memset(&a.b,0,sizeof(b));
x =memcmp(&a.b,&b,sizeof(b));}