OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [method-15.m] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test if prior method lookup at method @implementation time is not
2
   overly aggressive, leading to methods being found in other classes.  */
3
/* Author: Ziemowit Laski <zlaski@apple.com>.  */
4
 
5
/* { dg-do compile } */
6
 
7
#include <objc/Object.h>
8
 
9
@class NSString;
10
 
11
@protocol NSMenuItem
12
+ (void)setUsesUserKeyEquivalents:(BOOL)flag;
13
+ (BOOL)usesUserKeyEquivalents;
14
@end
15
 
16
@interface NSMenuItem : Object <NSMenuItem> {
17
  @private
18
  id _menu;
19
}
20
@end
21
 
22
@interface NSResponder : Object <NSMenuItem>
23
{
24
  id _nextResponder;
25
}
26
@end
27
 
28
@interface Object(NSMenuValidation)
29
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem;
30
@end
31
 
32
@interface NSResponder (NSStandardKeyBindingMethods)
33
- (void)insertText:(id)insertString;
34
- (void)doCommandBySelector:(SEL)aSelector;
35
@end
36
 
37
@interface NSView : NSResponder
38
{
39
  id _superview;
40
  id _subviews;
41
}
42
@end
43
 
44
@interface SKTGraphicView : NSView {
45
    @private
46
    float _gridSpacing;
47
}
48
@end
49
 
50
@implementation SKTGraphicView
51
- (BOOL)validateMenuItem:(NSMenuItem *)item {
52
  return (BOOL)1;
53
}
54
- (void)insertText:(NSString *)str {
55
}
56
@end

powered by: WebSVN 2.1.0

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