OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [obj-c++.dg/] [method-18.mm] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 308 jeremybenn
/* Contributed by Igor Seleznev .  */
2
/* This used to be broken.  */
3
 
4
#include 
5
 
6
@interface A
7
+ (A *)currentContext;
8
@end
9
 
10
@interface B
11
+ (B *)currentContext;
12
@end
13
 
14
int main()
15
{
16
    [A currentContext];  /* { dg-bogus "multiple declarations" }  */
17
    return 0;
18
}
19
 
20
@implementation A
21
+ (A *)currentContext { return nil; }
22
@end
23
@implementation B
24
+ (B *)currentContext { return nil; }
25
@end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.