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:
parent
5e18150f61
commit
b170a7784c
@ -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
|
||||
|
12
gcc/testsuite/obj-c++.dg/pr23709.mm
Normal file
12
gcc/testsuite/obj-c++.dg/pr23709.mm
Normal 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
|
12
gcc/testsuite/objc.dg/pr23709.m
Normal file
12
gcc/testsuite/objc.dg/pr23709.m
Normal 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
|
Loading…
Reference in New Issue
Block a user