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
a19db17d
Commit
a19db17d
authored
Jun 04, 2004
by
Nicola Pero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New testcases
From-SVN: r82620
parent
1600b7d6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
0 deletions
+79
-0
gcc/testsuite/objc/execute/protocol-isEqual-1.m
+20
-0
gcc/testsuite/objc/execute/protocol-isEqual-2.m
+22
-0
gcc/testsuite/objc/execute/protocol-isEqual-3.m
+18
-0
gcc/testsuite/objc/execute/protocol-isEqual-4.m
+19
-0
No files found.
gcc/testsuite/objc/execute/protocol-isEqual-1.m
0 → 100644
View file @
a19db17d
/* Contributed by Nicola Pero - Fri Jun 4 03:16:17 BST 2004 */
/* Test that a protocol is equal to itself. */
#include <objc/Protocol.h>
@protocol
Foo
-
(
void
)
foo
;
@end
int
main
(
void
)
{
Protocol
*
protocol
=
@protocol
(
Foo
);
if
(
!
[
protocol
isEqual
:
protocol
])
{
abort
();
}
return
0
;
}
gcc/testsuite/objc/execute/protocol-isEqual-2.m
0 → 100644
View file @
a19db17d
/* Contributed by Nicola Pero - Fri Jun 4 03:16:17 BST 2004 */
/* Test that protocols with different names are different. */
#include <objc/Protocol.h>
@protocol
Foo1
-
(
void
)
foo1
;
@end
@protocol
Foo2
-
(
void
)
foo2
;
@end
int
main
(
void
)
{
if
([
@protocol
(
Foo1
)
isEqual
:
@protocol
(
Foo2
)])
{
abort
();
}
return
0
;
}
gcc/testsuite/objc/execute/protocol-isEqual-3.m
0 → 100644
View file @
a19db17d
/* Contributed by Nicola Pero - Fri Jun 4 03:16:17 BST 2004 */
/* Test that a protocol is not equal to nil. */
#include <objc/Protocol.h>
@protocol
Foo
-
(
void
)
foo
;
@end
int
main
(
void
)
{
if
([
@protocol
(
Foo
)
isEqual
:
nil
])
{
abort
();
}
return
0
;
}
gcc/testsuite/objc/execute/protocol-isEqual-4.m
0 → 100644
View file @
a19db17d
/* Contributed by David Ayers - Fri Jun 4 03:16:17 BST 2004 */
/* Test that a protocol is not equal to something which is not a protocol. */
#include <objc/Protocol.h>
@protocol
Foo
-
(
void
)
foo
;
@end
int
main
(
void
)
{
/* A Protocol object should not be equal to a Class object. */
if
([
@protocol
(
Foo
)
isEqual
:
[
Protocol
class
]])
{
abort
();
}
return
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