In gcc/testsuite/: 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>

In gcc/testsuite/:
2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>

        PR objc/23709
        * objc.dg/pr23709.m: New.
        * obj-c++.dg/pr23709.m: New.

From-SVN: r165713
This commit is contained in:
Nicola Pero 2010-10-20 09:03:06 +00:00 committed by Nicola Pero
parent 5e18150f61
commit b170a7784c
3 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/23709
* objc.dg/pr23709.m: New.
* obj-c++.dg/pr23709.m: New.
2010-10-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/46046

View File

@ -0,0 +1,12 @@
/* { dg-do compile } */
@interface A
+(void)method: (int)parameter {} /* { dg-error "expected" } */
@end
@implementation A
+(void)method: (int)parameter
{
*parameter; /* { dg-error "invalid type argument" } */
}
@end

View File

@ -0,0 +1,12 @@
/* { dg-do compile } */
@interface A
+(void)method: (int)parameter {} /* { dg-error "expected" } */
@end
@implementation A
+(void)method: (int)parameter
{
*parameter; /* { dg-error "invalid type argument" } */
}
@end