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
f234f078
Commit
f234f078
authored
Aug 10, 2017
by
Marek Polacek
Committed by
Marek Polacek
Aug 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* objc.dg/proto-lossage-4.m: Accept int/long int as intptr_t.
From-SVN: r251022
parent
aaab59b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
gcc/testsuite/ChangeLog
+2
-0
gcc/testsuite/objc.dg/proto-lossage-4.m
+3
-3
No files found.
gcc/testsuite/ChangeLog
View file @
f234f078
...
...
@@ -3,6 +3,8 @@
PR testsuite/81784
* gcc.dg/compare2.c: Update dg-bogus and dg-warning.
* objc.dg/proto-lossage-4.m: Accept int/long int as intptr_t.
2017-08-10 Martin Liska <mliska@suse.cz>
PR c++/81355
...
...
gcc/testsuite/objc.dg/proto-lossage-4.m
View file @
f234f078
...
...
@@ -28,13 +28,13 @@ long foo(void) {
receiver
+=
[
receiver
anotherValue
];
/* { dg-warning "invalid receiver type .intptr_t." } */
receiver
+=
[(
Obj
*
)
receiver
someValue
];
/* { dg-warning ".Obj. may not respond to .\\-someValue." } */
/* { dg-warning "assignment to 'intptr_t {aka
long
int}' from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */
/* { dg-warning "assignment to 'intptr_t {aka
(long )?
int}' from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */
receiver
+=
[(
Obj
*
)
receiver
anotherValue
];
receiver
+=
[(
Obj
<
Proto
>
*
)
receiver
someValue
];
receiver
+=
[(
Obj
<
Proto
>
*
)
receiver
anotherValue
];
receiver
+=
[
objrcvr
someValue
];
/* { dg-warning ".Obj. may not respond to .\\-someValue." } */
/* { dg-warning "assignment to 'intptr_t {aka
long
int}' from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */
/* { dg-warning "assignment to 'intptr_t {aka
(long )?
int}' from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */
receiver
+=
[
objrcvr
anotherValue
];
receiver
+=
[(
Obj
<
Proto
>
*
)
objrcvr
someValue
];
...
...
@@ -42,7 +42,7 @@ long foo(void) {
receiver
+=
[
objrcvr2
someValue
];
receiver
+=
[
objrcvr2
anotherValue
];
receiver
+=
[(
Obj
*
)
objrcvr2
someValue
];
/* { dg-warning ".Obj. may not respond to .\\-someValue." } */
/* { dg-warning "assignment to 'intptr_t {aka
long
int}' from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */
/* { dg-warning "assignment to 'intptr_t {aka
(long )?
int}' from 'id' makes integer from pointer without a cast" "" { target *-*-* } .-1 } */
receiver
+=
[(
Obj
*
)
objrcvr2
anotherValue
];
...
...
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