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