diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-16 23:52:53 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-09-16 23:52:53 +0000 |
commit | f08bf1f3263be401806ee0f83cba376c637da07a (patch) | |
tree | 7504a172a36542a00daffe4dd6c351708d5a9dcf /test/CodeGenObjC/objc2-write-barrier-2.m | |
parent | 2db213d556570b9a992434309be66cb189d69366 (diff) | |
download | clang-f08bf1f3263be401806ee0f83cba376c637da07a.tar.gz |
Removed useless stuff from the test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjC/objc2-write-barrier-2.m')
-rw-r--r-- | test/CodeGenObjC/objc2-write-barrier-2.m | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/CodeGenObjC/objc2-write-barrier-2.m b/test/CodeGenObjC/objc2-write-barrier-2.m index a3f4124e86..14ffcbe7d7 100644 --- a/test/CodeGenObjC/objc2-write-barrier-2.m +++ b/test/CodeGenObjC/objc2-write-barrier-2.m @@ -14,12 +14,12 @@ id W, *X, **Y; 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 @@ void func(id a, id *b, id **c) { @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 @@ typedef struct { 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(); } |