From a3fa5c7f1b5e2ba4d6ec033dc0e2376326b05824 Mon Sep 17 00:00:00 2001 From: rdivacky <rdivacky@FreeBSD.org> Date: Fri, 15 Jan 2010 15:39:40 +0000 Subject: Update clang to r93512. --- test/Analysis/reference.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Analysis/reference.cpp (limited to 'test/Analysis/reference.cpp') diff --git a/test/Analysis/reference.cpp b/test/Analysis/reference.cpp new file mode 100644 index 0000000..a641b8e --- /dev/null +++ b/test/Analysis/reference.cpp @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -analyzer-constraints=range -verify %s + +void f1() { + int const &i = 3; + int b = i; + + int *p = 0; + + if (b != 3) + *p = 1; // no-warning +} -- cgit v1.1