[cfe-commits] r82095 - /cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m

Fariborz Jahanian fjahanian at apple.com
Wed Sep 16 16:52:54 PDT 2009


Author: fjahanian
Date: Wed Sep 16 18:52:53 2009
New Revision: 82095

URL: http://llvm.org/viewvc/llvm-project?rev=82095&view=rev
Log:
Removed useless stuff from the test.


Modified:
    cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m

Modified: cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m?rev=82095&r1=82094&r2=82095&view=diff

==============================================================================
--- cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m (original)
+++ cfe/trunk/test/CodeGenObjC/objc2-write-barrier-2.m Wed Sep 16 18:52:53 2009
@@ -14,12 +14,12 @@
 
 void func(id a, id *b, id **c) {
    static id w, *x, **y;
-   W = a;  /* { dg-warning "global\\/static variable assignment" } */
-   w = a;  /* { dg-warning "global\\/static variable assignment" } */
-   X = b;  /* { dg-warning "global\\/static variable assignment" } */
-   x = b;  /* { dg-warning "global\\/static variable assignment" } */
-   Y = c;  /* { dg-warning "global\\/static variable assignment" } */
-   y = c;  /* { dg-warning "global\\/static variable assignment" } */
+   W = a;  
+   w = a;
+   X = b;
+   x = b; 
+   Y = c;
+   y = c; 
 }
 
 // Instances
@@ -32,9 +32,9 @@
 @implementation something
 - (void)amethod {
     id badIdea = *somefunc2();
-    w = badIdea;   /* { dg-warning "instance variable assignment" } */
-    x = &badIdea;  /* { dg-warning "instance variable assignment" } */
-    y = &x;        /* { dg-warning "instance variable assignment" } */
+    w = badIdea;
+    x = &badIdea;
+    y = &x;
 }
 @end
 
@@ -45,8 +45,8 @@
 
 void funct2(AStruct *aptr) {
     id **ppptr = somefunc();
-    aptr->alfred = 0;  /* { dg-warning "strong\\-cast assignment" } */
-    **ppptr = aptr->alfred;       /* { dg-warning "strong\\-cast assignment" } */
-    *ppptr = somefunc2();         /* { dg-warning "strong\\-cast assignment" } */
+    aptr->alfred = 0;
+    **ppptr = aptr->alfred;
+    *ppptr = somefunc2(); 
 }
 





More information about the cfe-commits mailing list