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
b944e97a
Commit
b944e97a
authored
Apr 30, 2012
by
Greta Yorsh
Committed by
Tejas Belagod
Apr 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failure in gcc.dg/pr52283.c by adding the missing
dg-warning and dg-options. From-SVN: r186985
parent
b8fb55d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/pr52283.c
+2
-1
No files found.
gcc/testsuite/ChangeLog
View file @
b944e97a
2012-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
* gcc.dg/pr52283.c: Add missing dg-warning and dg-options.
2012-04-30 Dodji Seketeli <dodji@redhat.com>
2012-04-30 Dodji Seketeli <dodji@redhat.com>
Add -Wvarargs option
Add -Wvarargs option
...
...
gcc/testsuite/gcc.dg/pr52283.c
View file @
b944e97a
/* Test for case labels not integer constant expressions but folding
/* Test for case labels not integer constant expressions but folding
to integer constants (used in Linux kernel). */
to integer constants (used in Linux kernel). */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-pedantic" } */
extern
unsigned
int
u
;
extern
unsigned
int
u
;
...
@@ -9,7 +10,7 @@ b (int c)
...
@@ -9,7 +10,7 @@ b (int c)
{
{
switch
(
c
)
switch
(
c
)
{
{
case
(
int
)
(
2
|
((
4
<
8
)
?
8
:
u
))
:
case
(
int
)
(
2
|
((
4
<
8
)
?
8
:
u
))
:
/* { dg-warning "case label is not an integer constant expression" } */
;
;
}
}
}
}
...
...
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