summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-09-05 17:34:50 +0000
committerJordan Rose <jordan_rose@apple.com>2012-09-05 17:34:50 +0000
commit6d92188ff75e7ea12fc2014c4ce0235c822b9393 (patch)
treed6312d447e5cf66c8bc4d52ff2d75e6bab56794b
parent73bf7f5b5b3eb18397e1e582049385a434a0763a (diff)
downloadbcm5719-llvm-6d92188ff75e7ea12fc2014c4ce0235c822b9393.tar.gz
bcm5719-llvm-6d92188ff75e7ea12fc2014c4ce0235c822b9393.zip
[analyzer] Fix bad test from r163220.
Add a FIXME to the test while I track down the real problem. llvm-svn: 163222
-rw-r--r--clang/test/Analysis/array-struct-region.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Analysis/array-struct-region.cpp b/clang/test/Analysis/array-struct-region.cpp
index 3581566bdcc..f610fbb2f8d 100644
--- a/clang/test/Analysis/array-struct-region.cpp
+++ b/clang/test/Analysis/array-struct-region.cpp
@@ -52,6 +52,12 @@ int getAssignedField(struct S s) {
void testArgument() {
clang_analyzer_eval(getConstrainedField(getS()) == 42); // expected-warning{{TRUE}}
+#if __cplusplus
+ // FIXME: Passing the struct by value seems to be confusing C++.
+ // Possibly related to <rdar://problem/12137950>.
+ // expected-warning@-4{{UNKNOWN}}
+#endif
+
clang_analyzer_eval(getAssignedField(getS()) == 42); // expected-warning{{TRUE}}
}
OpenPOWER on IntegriCloud