[cfe-commits] r78018 - /cfe/trunk/test/Analysis/misc-ps.m
Ted Kremenek
kremenek at apple.com
Mon Aug 3 16:22:58 PDT 2009
Author: kremenek
Date: Mon Aug 3 18:22:53 2009
New Revision: 78018
URL: http://llvm.org/viewvc/llvm-project?rev=78018&view=rev
Log:
Add a pass-by-value test for the analyzer.
Modified:
cfe/trunk/test/Analysis/misc-ps.m
Modified: cfe/trunk/test/Analysis/misc-ps.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/misc-ps.m?rev=78018&r1=78017&r2=78018&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/misc-ps.m (original)
+++ cfe/trunk/test/Analysis/misc-ps.m Mon Aug 3 18:22:53 2009
@@ -508,3 +508,17 @@
return origfun;
return 0;
}
+
+// Test passing-by-value an initialized struct variable.
+struct test_pass_val {
+ int x;
+ int y;
+};
+void test_pass_val_aux(struct test_pass_val s);
+void test_pass_val() {
+ struct test_pass_val s;
+ s.x = 1;
+// s.y = 2;
+ test_pass_val_aux(s);
+}
+
More information about the cfe-commits
mailing list