1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 // expected-no-diagnostics 4 5 typedef __SIZE_TYPE__ size_t; 6 void *memset(void *, int, size_t); 7 8 typedef struct { 9 int a; 10 } S; 11 test()12 void test() { 13 S s; 14 __auto_type dstptr = &s; 15 memset(dstptr, 0, sizeof(s)); 16 } 17