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
5460b103
Commit
5460b103
authored
Jun 19, 2019
by
Jakub Jelinek
Committed by
Jakub Jelinek
Jun 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* g++.dg/ubsan/pr63956.C: Adjust expected diagnostics.
From-SVN: r272470
parent
99efe97d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/g++.dg/ubsan/pr63956.C
+4
-4
No files found.
gcc/testsuite/ChangeLog
View file @
5460b103
2019-06-19 Jakub Jelinek <jakub@redhat.com>
* g++.dg/ubsan/pr63956.C: Adjust expected diagnostics.
2019-06-19 Jim MacArthur <jim.macarthur@codethink.co.uk>
Mark Eggleston <mark.eggleston@codethink.com>
...
...
gcc/testsuite/g++.dg/ubsan/pr63956.C
View file @
5460b103
...
...
@@ -80,13 +80,13 @@ constexpr int
fn5
(
const
int
*
a
,
int
b
)
{
if
(
b
!=
2
)
b
=
a
[
b
];
b
=
a
[
b
];
// { dg-error "array subscript" }
return
b
;
}
constexpr
int
m1
[
4
]
=
{
1
,
2
,
3
,
4
};
constexpr
int
m2
=
fn5
(
m1
,
3
);
constexpr
int
m3
=
fn5
(
m1
,
4
);
// { dg-
error "array subscript|
in .constexpr. expansion of " }
constexpr
int
m3
=
fn5
(
m1
,
4
);
// { dg-
message "
in .constexpr. expansion of " }
constexpr
int
fn6
(
const
int
&
a
,
int
b
)
...
...
@@ -112,11 +112,11 @@ constexpr int
fn8
(
int
i
)
{
constexpr
int
g
[
10
]
=
{
};
return
g
[
i
];
return
g
[
i
];
// { dg-error "array subscript" }
}
constexpr
int
o1
=
fn8
(
9
);
constexpr
int
o2
=
fn8
(
10
);
// { dg-
error "array subscript|
in .constexpr. expansion of " }
constexpr
int
o2
=
fn8
(
10
);
// { dg-
message "
in .constexpr. expansion of " }
constexpr
int
fn9
(
int
a
,
int
b
)
...
...
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