summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-12-19 02:26:37 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-12-19 02:26:37 +0000
commit7e2a9fd62068cb63444975b03b2d54aecb8d1646 (patch)
tree056fe4f5c7e96d5426291bac0c447ca22b4c9586 /clang/test/Analysis
parent6fd80a5593810f18233e97284fb9d2e431ec1642 (diff)
downloadbcm5719-llvm-7e2a9fd62068cb63444975b03b2d54aecb8d1646.tar.gz
bcm5719-llvm-7e2a9fd62068cb63444975b03b2d54aecb8d1646.zip
If the initializer is an rvalue and the variable is a const reference,
create a temporary object for it. llvm-svn: 122161
Diffstat (limited to 'clang/test/Analysis')
-rw-r--r--clang/test/Analysis/reference.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/reference.cpp b/clang/test/Analysis/reference.cpp
index 836abb446fd..51c8aae66c1 100644
--- a/clang/test/Analysis/reference.cpp
+++ b/clang/test/Analysis/reference.cpp
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-mem -analyzer-store=region -analyzer-constraints=range -verify %s
-// XFAIL: *
+
typedef typeof(sizeof(int)) size_t;
void malloc (size_t);
OpenPOWER on IntegriCloud