[cfe-commits] r163222 - /cfe/trunk/test/Analysis/array-struct-region.cpp
Jordan Rose
jordan_rose at apple.com
Wed Sep 5 10:34:50 PDT 2012
Author: jrose
Date: Wed Sep 5 12:34:50 2012
New Revision: 163222
URL: http://llvm.org/viewvc/llvm-project?rev=163222&view=rev
Log:
[analyzer] Fix bad test from r163220.
Add a FIXME to the test while I track down the real problem.
Modified:
cfe/trunk/test/Analysis/array-struct-region.cpp
Modified: cfe/trunk/test/Analysis/array-struct-region.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/array-struct-region.cpp?rev=163222&r1=163221&r2=163222&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/array-struct-region.cpp (original)
+++ cfe/trunk/test/Analysis/array-struct-region.cpp Wed Sep 5 12:34:50 2012
@@ -52,6 +52,12 @@
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 at -4{{UNKNOWN}}
+#endif
+
clang_analyzer_eval(getAssignedField(getS()) == 42); // expected-warning{{TRUE}}
}
More information about the cfe-commits
mailing list