diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-12-19 02:26:37 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-12-19 02:26:37 +0000 |
commit | f45fbad13ee1f143a2cb6e806fefe22b48f68940 (patch) | |
tree | 01375f1a0f1448551d475afa7bf6f0e7b643db7a /test/Analysis/reference.cpp | |
parent | 9c2bac02c1d1204bcf2c5a025ab901d09bc7ae26 (diff) |
If the initializer is an rvalue and the variable is a const reference,
create a temporary object for it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/reference.cpp')
-rw-r--r-- | test/Analysis/reference.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Analysis/reference.cpp b/test/Analysis/reference.cpp index 836abb446f..51c8aae66c 100644 --- a/test/Analysis/reference.cpp +++ b/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); |