aboutsummaryrefslogtreecommitdiff
path: root/test/Analysis/malloc-overflow.cpp
blob: c1ac6be4b029fc087b35c1317d8b810ad64de7d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -analyze -analyzer-checker=experimental.security.MallocOverflow -verify %s

class A {
public:
  A& operator<<(const A &a);
};

void f() {
  A a = A(), b = A();
  a << b;
}