[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / warn-memset-bad-sizeof.c
blobc4768d8d0edd2faa7855d273edb65476d6dbe7c1
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // expected-no-diagnostics
5 typedef __SIZE_TYPE__ size_t;
6 void *memset(void *, int, size_t);
8 typedef struct {
9 int a;
10 } S;
12 void test() {
13 S s;
14 __auto_type dstptr = &s;
15 memset(dstptr, 0, sizeof(s));