Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / report-uniqueing.cpp
blob0e4d50e13a20dc6e8adccf0e50cfc7bbab4a431a
1 // RUN: %clang_analyze_cc1 -verify %s \
2 // RUN: -analyzer-checker=security
4 void bzero(void *, unsigned long);
6 template <typename T> void foo(T l) {
7 // The warning comes from multiple instances and with
8 // different declarations that have same source location.
9 // One instance should be shown.
10 bzero(l, 1); // expected-warning{{The bzero() function is obsoleted}}
13 void p(int *p, unsigned *q) {
14 foo(p);
15 foo(q);