summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-12-19 03:17:55 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-12-19 03:17:55 +0000
commit4794801e27e3066c622f2224c2affe22289c8dc1 (patch)
tree6a96a62fa5d3057938d305fadca6a6639b17de83 /clang/test
parenta4b592a7d5892001b53f51fe936c77d340e6df38 (diff)
downloadbcm5719-llvm-4794801e27e3066c622f2224c2affe22289c8dc1.tar.gz
bcm5719-llvm-4794801e27e3066c622f2224c2affe22289c8dc1.zip
Use the FunctionDecl's result type to know exactly if it returns a reference.
llvm-svn: 91751
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Analysis/misc-ps-region-store.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/Analysis/misc-ps-region-store.cpp b/clang/test/Analysis/misc-ps-region-store.cpp
index 838ac39d5c1..c3e07b26b00 100644
--- a/clang/test/Analysis/misc-ps-region-store.cpp
+++ b/clang/test/Analysis/misc-ps-region-store.cpp
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple i386-apple-darwin9 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-store=region -verify -fblocks -analyzer-opt-analyze-nested-blocks %s
-// XFAIL: *
// Test basic handling of references.
char &test1_aux();
@@ -8,7 +7,7 @@ char *test1() {
return &test1_aux();
}
-// This test currently crasehs because test1_aux() evaluates to a 'char' instead of a char& in CFRefCount.cpp.
+// Test test1_aux() evaluates to char &.
char test1_as_rvalue() {
return test1_aux();
}
OpenPOWER on IntegriCloud