[ELF] Avoid make in elf::writeARMCmseImportLib
[llvm-project.git] / clang / test / Analysis / cstring-syntax-cxx.cpp
blobb11b81105b920739d5094c39e4053eb73acf0807
1 // RUN: %clang_analyze_cc1 -analyzer-checker=unix.cstring.BadSizeArg -verify %s
2 // expected-no-diagnostics
4 // Ensure we don't crash on C++ declarations with special names.
5 struct X {
6 X(int i): i(i) {}
7 int i;
8 };
10 X operator+(X a, X b) {
11 return X(a.i + b.i);
14 void test(X a, X b) {
15 X c = a + b;
18 // Ensure we don't crash on custom-defined strncat.
19 char strncat ();
20 int main () {
21 return strncat ();