xref: /minix3/external/bsd/llvm/dist/clang/test/Analysis/malloc-overflow.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.MallocOverflow -verify %s
2 // expected-no-diagnostics
3 
4 class A {
5 public:
6   A& operator<<(const A &a);
7 };
8 
f()9 void f() {
10   A a = A(), b = A();
11   a << b;
12 }
13