Fariborz, I discussed with Chris a bit this morning about how to deal with keeping executable tests out of the clang test suite.
Our basic plan for the time being is to keep this restriction but to encourage the addition of test cases in the llvm-tests test suite (here: http://llvm.org/docs/TestingGuide.html#testsuiterun). I will take care of adding an Objective-C unit tests directory into the test-suite and making it conditionalized on darwin, but could you make an executable test case for @synchronized that actually checks its functioning to some extent (perhaps just email it to me and I will drop in the test-suite when ready)? - Daniel On Mon, Nov 17, 2008 at 10:03 AM, Fariborz Jahanian <[EMAIL PROTECTED]> wrote: > Author: fjahanian > Date: Mon Nov 17 12:03:28 2008 > New Revision: 59451 > > URL: http://llvm.org/viewvc/llvm-project?rev=59451&view=rev > Log: > Test case for objective-c's @synchronized statement. > > Added: > cfe/trunk/test/CodeGenObjC/synchronized.m > > Added: cfe/trunk/test/CodeGenObjC/synchronized.m > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/synchronized.m?rev=59451&view=auto > > ============================================================================== > --- cfe/trunk/test/CodeGenObjC/synchronized.m (added) > +++ cfe/trunk/test/CodeGenObjC/synchronized.m Mon Nov 17 12:03:28 2008 > @@ -0,0 +1,11 @@ > +// RUN: clang -emit-llvm -o %t %s > + > +#include <stdio.h> > + > +void foo(id a) { > + @synchronized(a) { > + printf("Swimming? No."); > + return; > + } > +} > + > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
