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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [obj-c++.dg/] [method-2.mm] - Blame information for rev 20

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

Line No. Rev Author Line
1 12 jlechner
/* 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 .  */
4
 
5
/* { dg-do compile } */
6
 
7
#include 
8
 
9
@class NSString;
10
 
11
@protocol NSMenuItem
12
+ (void)setUsesUserKeyEquivalents:(BOOL)flag;
13
+ (BOOL)usesUserKeyEquivalents;
14
@end
15
 
16
@interface NSMenuItem : Object  {
17
  @private
18
  id _menu;
19
}
20
@end
21
 
22
@interface NSResponder : Object 
23
{
24
  id _nextResponder;
25
}
26
@end
27
 
28
@interface Object(NSMenuValidation)
29
- (BOOL)validateMenuItem:(id )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.