• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -analyze -analyzer-checker=unix.cstring.BadSizeArg -analyzer-store=region -verify %s
2 
3 // Ensure we don't crash on C++ declarations with special names.
4 struct X {
XX5   X(int i): i(i) {}
6   int i;
7 };
8 
operator +(X a,X b)9 X operator+(X a, X b) {
10   return X(a.i + b.i);
11 }
12 
test(X a,X b)13 void test(X a, X b) {
14   X c = a + b;
15 }
16 
17