1 // RUN: %clang_cc1 %s -triple x86_64-unknown-linux -fsyntax-only -verify=c
2 // RUN: %clang_cc1 -x c++ %s -triple x86_64-unknown-linux -fsyntax-only -verify=cxx
7 /// Zero-sized structs should not crash.
10 __builtin_memcpy(&a
[2], a
, 2); // c-warning {{buffer has size 0, but size argument is 2}}
15 // FIXME: This is UB and GCC correctly diagnoses it. Clang should do the same.
18 __builtin_memcpy(&a
[2], a
, 2);
21 static_assert(b2() == 0, "");