]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix bad test from r163220.
authorJordan Rose <jordan_rose@apple.com>
Wed, 5 Sep 2012 17:34:50 +0000 (17:34 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 5 Sep 2012 17:34:50 +0000 (17:34 +0000)
Add a FIXME to the test while I track down the real problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163222 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/array-struct-region.cpp

index 3581566bdccff84d72a78390bcc63f99b7aa1dc2..f610fbb2f8d2491291b1fd3d03743bb6b02d3057 100644 (file)
@@ -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}}
 }