1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s
3 // This test tests that the warning is here when it is included from
4 // the unified sources file. The run-line in this file is there
5 // only to suppress LIT warning for the complete lack of run-line.
6 int testNullDereference() {
8 return *x
; // expected-warning{{}}
11 // Let's see if the container inlining heuristic still works.
12 class ContainerInCodeFile
{
17 Iterator
begin() const;
20 int method() { return 0; }
23 int testContainerMethodInCodeFile(ContainerInCodeFile Cont
) {
24 return 1 / Cont
.method(); // expected-warning{{}}