]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
In gcc/testsuite/:
authornicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Nov 2010 02:40:04 +0000 (02:40 +0000)
committernicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Nov 2010 02:40:04 +0000 (02:40 +0000)
2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>

* obj-c++.dg/property/at-property-1.mm: Fixed testcase.
* obj-c++.dg/property/at-property-16.mm: Fixed testcase.
* obj-c++.dg/property/at-property-20.mm: Fixed testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167232 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/property/at-property-1.mm
gcc/testsuite/obj-c++.dg/property/at-property-16.mm
gcc/testsuite/obj-c++.dg/property/at-property-20.mm

index 4a6ad47318088986309fb96a504fc868db5d5a96..c7830ebc2b920e68269d5719de72fea1881e50d6 100644 (file)
@@ -1,3 +1,9 @@
+2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * obj-c++.dg/property/at-property-1.mm: Fixed testcase.
+       * obj-c++.dg/property/at-property-16.mm: Fixed testcase.
+       * obj-c++.dg/property/at-property-20.mm: Fixed testcase.
+
 2010-11-28  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/46662
index c3be5d81c2e6224c243406894764b1c74e1d8a9e..1b945bd44ba3df8bd3ff1fabacdf73eb7e1583d9 100644 (file)
@@ -15,9 +15,6 @@
 @property (readonly,) int f;    /* { dg-error "expected identifier" } */
 @property (xxx) int g;          /* { dg-error "unknown property attribute" } */
 @property (readonly,xxx) int h; /* { dg-error "unknown property attribute" } */
-/* FIXME - there is a problem with the testuite in running the following test.  The compiler
-   generates the messages, but the testsuite still complains.  */
-/*@property ( int i;*/          /* dg-error "unknown property attribute" */
-                                /* dg-error "expected ... "       "" { target *-*-* } 18 */
-                                /* dg-error "expected identfier " "" { target *-*-* } 18 */
+@property ( int i;              /* { dg-error "expected identifier" } */
+                                /* { dg-error "expected ... "       "" { target *-*-* } 18 } */
 @end
index 8cab00a7a9a846a8140bc9eb85064e62a6399536..2639de9e667e57ca8831df35251b693313084de9 100644 (file)
 @property (retain) id b;                  /* { dg-warning "originally specified here" } */
 @property int c;                          /* { dg-warning "originally specified here" } */
 @property (nonatomic) int d;              /* { dg-warning "originally specified here" } */
-/* FIXME: The compiler generates these errors, but the testsuite still fails the tests.  */
-@property int e;                          /* dg-warning "originally specified here" */
-@property int f;                          /* dg-warning "originally specified here" */
-@property int g;                          /* dg-warning "originally specified here" */
+/* FIXME: Mysteriously the next 3 need to be 'dg-message' instead of 'dg-warning' for the testcase to work.  */
+@property int e;                          /* { dg-message "originally specified here" } */
+@property int f;                          /* { dg-message "originally specified here" } */
+@property int g;                          /* { dg-message "originally specified here" } */
 @property (readonly) int h;               /* Ok */
 @property (readonly,getter=getMe) int i;  /* { dg-warning "originally specified here" } */
 @end
 @property (assign) id b;         /* { dg-warning "assign semantics attributes of property .b. conflict with previous declaration" } */
 @property (nonatomic) int c;     /* { dg-warning ".nonatomic. attribute of property .c. conflicts with previous declaration" } */
 @property int d;                 /* { dg-warning ".nonatomic. attribute of property .d. conflicts with previous declaration" } */
-/* FIXME: The compiler generates these errors, but the testsuite still fails the tests.  */
-/*@property (setter=setX:) int e;*/  /*  dg-warning ".setter. attribute of property .e. conflicts with previous declaration"  */
-/*@property (getter=x) int f;*/      /*  dg-warning ".getter. attribute of property .f. conflicts with previous declaration"  */
-/*@property (readonly) int g;*/      /*  dg-warning ".readonly. attribute of property .g. conflicts with previous declaration"  */
+@property (setter=setX:) int e;  /* { dg-warning ".setter. attribute of property .e. conflicts with previous declaration" } */
+@property (getter=x) int f;      /* { dg-warning ".getter. attribute of property .f. conflicts with previous declaration" } */
+@property (readonly) int g;      /* { dg-warning ".readonly. attribute of property .g. conflicts with previous declaration" } */
 @property (readwrite) int h;     /* Ok */
 @property (readonly) int i;      /* { dg-warning ".getter. attribute of property .i. conflicts with previous declaration" } */
 @end
index 0fae36b70887704b045452378ab5337e655df369..077fe6ddda2ec2db0fb44f1801864f203123fee3 100644 (file)
 @property float c;                            /* { dg-warning "originally specified here" } */
 @property (assign) MyRootClass *d;            /* { dg-warning "originally specified here" } */
 @property (assign) MySubClass1 *e;            /* { dg-warning "originally specified here" } */
-/* FIXME: The compiler seems to generate messages correctly, but the testsuite still fails the test.  */
-/*@property (assign, readonly) MySubClass1 *f; */ /*  dg-warning "originally specified here"  */
+/* FIXME: Mysteriously two of the next three need to be 'dg-message' instead of 'dg-warning' for the testcase to work.  */
+@property (assign, readonly) MySubClass1 *f;  /* { dg-message "originally specified here" } */
 @property (assign) MySubClass3 *g;            /* { dg-warning "originally specified here" } */
-/*@property (assign, readonly) MySubClass3 *h; */ /*  dg-warning "originally specified here"  */
+@property (assign, readonly) MySubClass3 *h;  /* { dg-message "originally specified here"  } */
 @end
 
 /* The following are all OK because they are identical.  */
@@ -69,9 +69,9 @@
 @property int c;                              /* { dg-warning "type of property .c. conflicts with previous declaration" } */
 @property (assign) id d;                      /* { dg-warning "type of property .d. conflicts with previous declaration" } */
 @property (assign) MyRootClass *e;            /* { dg-warning "type of property .e. conflicts with previous declaration" } */
-/*@property (assign, readonly) MyRootClass *f; */ /*  dg-warning "type of property .f. conflicts with previous declaration"  */
+@property (assign, readonly) MyRootClass *f;  /* { dg-warning "type of property .f. conflicts with previous declaration" } */
 @property (assign) MySubClass2 *g;            /* { dg-warning "type of property .g. conflicts with previous declaration" } */
-/*@property (assign, readonly) MySubClass2 *h; */ /*  dg-warning "type of property .h. conflicts with previous declaration"  */
+@property (assign, readonly) MySubClass2 *h;  /* { dg-warning "type of property .h. conflicts with previous declaration" } */
 @end
 
 /* The following are OK.  */