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
480cd778
Commit
480cd778
authored
Feb 05, 2001
by
Ovidiu Predescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added.
From-SVN: r39459
parent
b9c4543f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
0 deletions
+53
-0
gcc/testsuite/objc/execute/bycopy-1.m
+20
-0
gcc/testsuite/objc/execute/bycopy-2.m
+33
-0
No files found.
gcc/testsuite/objc/execute/bycopy-1.m
0 → 100644
View file @
480cd778
/*
* Contributed by Nicola Pero <nicola@brainstorm.co.uk>
* Fri Feb 2 11:48:01 GMT 2001
*/
#include <objc/objc.h>
#include <objc/Protocol.h>
@protocol
MyProtocol
-
(
bycopy
id
)
bycopyMethod
;
@end
int
main
(
void
)
{
[
nil
bycopyMethod
];
exit
(
0
);
}
gcc/testsuite/objc/execute/bycopy-2.m
0 → 100644
View file @
480cd778
/*
* Contributed by Nicola Pero <nicola@brainstorm.co.uk>
* Fri Feb 2 11:48:01 GMT 2001
*/
#include <objc/objc.h>
#include <objc/Object.h>
#include <objc/Protocol.h>
@protocol
MyProtocol
+
(
bycopy
id
<
MyProtocol
>
)
bycopyMethod
;
@end
@interface
MyObject
:
Object
<
MyProtocol
>
@end
@implementation
MyObject
+
(
bycopy
id
<
MyProtocol
>
)
bycopyMethod
{
return
[
MyObject
alloc
];
}
@end
int
main
(
void
)
{
MyObject
*
object
;
object
=
[
MyObject
bycopyMethod
];
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