Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
ab9b1e42
Commit
ab9b1e42
authored
Oct 05, 2000
by
Ovidiu Predescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added.
From-SVN: r36727
parent
b8fbe62c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
gcc/testsuite/objc/execute/np-1.m
+31
-0
gcc/testsuite/objc/execute/np-2.m
+29
-0
No files found.
gcc/testsuite/objc/execute/np-1.m
0 → 100644
View file @
ab9b1e42
/*
* Contributed by Nicola Pero <n.pero@mi.flashnet.it>
* Tue Sep 19 4:29AM
*/
#include <objc/objc.h>
#include <objc/Protocol.h>
@protocol
MyProtocol
-
(
oneway
void
)
methodA
;
@end
@interface
MyObject
<
MyProtocol
>
@end
@implementation
MyObject
-
(
oneway
void
)
methodA
{
}
@end
int
main
(
void
)
{
MyObject
*
object
=
nil
;
[
object
methodA
];
exit
(
0
);
}
gcc/testsuite/objc/execute/np-2.m
0 → 100644
View file @
ab9b1e42
/*
* Contributed by Nicola Pero <n.pero@mi.flashnet.it>
* Tue Sep 19 4:34AM
*/
#include <objc/objc.h>
#include <objc/Protocol.h>
@protocol
MyProtocol
+
(
oneway
void
)
methodA
;
@end
@interface
MyObject
<
MyProtocol
>
@end
@implementation
MyObject
+
(
oneway
void
)
methodA
{
printf
(
"methodA
\n
"
);
}
@end
int
main
(
void
)
{
[
MyObject
methodA
];
exit
(
0
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment