teak-llvm/clang/test/Analysis/malloc-overflow.cpp
Ted Kremenek 722398f1d4 Fix analyzer tests.
llvm-svn: 162588
2012-08-24 20:39:55 +00:00

12 lines
184 B
C++

// RUN: %clang_cc1 -analyze -analyzer-checker=alpha.security.MallocOverflow -verify %s
class A {
public:
A& operator<<(const A &a);
};
void f() {
A a = A(), b = A();
a << b;
}