17 lines
253 B
C
17 lines
253 B
C
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||
|
|
||
|
// expected-no-diagnostics
|
||
|
|
||
|
typedef __SIZE_TYPE__ size_t;
|
||
|
void *memset(void *, int, size_t);
|
||
|
|
||
|
typedef struct {
|
||
|
int a;
|
||
|
} S;
|
||
|
|
||
|
void test() {
|
||
|
S s;
|
||
|
__auto_type dstptr = &s;
|
||
|
memset(dstptr, 0, sizeof(s));
|
||
|
}
|