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
30235724
Commit
30235724
authored
Nov 03, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Nov 03, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tests for sequence point warnings.
From-SVN: r37226
parent
94e9dc13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
gcc/testsuite/ChangeLog
+5
-0
gcc/testsuite/gcc.dg/sequence-pt-1.c
+12
-7
No files found.
gcc/testsuite/ChangeLog
View file @
30235724
2000-11-03 Bernd Schmidt <bernds@redhat.co.uk>
* gcc.dg/sequence-pt-1.c: A few new tests. Unify output for bogus
warnings.
2000-11-01 Richard Henderson <rth@redhat.com>
* g++.old-deja/g++.ext/namedret1.C: New.
...
...
gcc/testsuite/gcc.dg/sequence-pt-1.c
View file @
30235724
...
...
@@ -45,15 +45,20 @@ foo (int a, int b, int n, int p, int *ptr, struct s *sptr,
*
ap
=
fnc
(
ap
++
);
/* { dg-warning "undefined" "sequence point warning" } */
(
a
+=
b
)
+
(
a
+=
n
);
/* { dg-warning "undefined" "sequence point warning" } */
a
=
(
b
,
b
++
)
+
(
b
++
,
b
);
/* { dg-warning "undefined" "sequence point warning" } */
ap
[
a
++
]
+=
a
;
/* { dg-warning "undefined" "sequence point warning" } */
ap
[
a
+=
1
]
+=
a
;
/* { dg-warning "undefined" "sequence point warning" } */
ap
[
a
++
]
+=
a
++
;
/* { dg-warning "undefined" "sequence point warning" } */
ap
[
a
+=
1
]
+=
a
++
;
/* { dg-warning "undefined" "sequence point warning" } */
a
=
(
a
++
&&
4
);
/* { dg-bogus "undefined" "bogus sequence point warning" } */
len
=
sprintf
(
ans
,
"%d"
,
len
++
);
/* { dg-bogus "undefined" "bogus sequence point warning" } */
a
=
fn
(
a
++
);
/* { dg-bogus "undefined" "sequence point warning" } */
(
a
=
b
++
),
(
a
=
b
++
);
/* { dg-bogus "undefined" "sequence point warning" } */
a
=
(
b
++
,
b
++
);
/* { dg-bogus "undefined" "sequence point warning" } */
a
=
b
++
&&
b
++
;
/* { dg-bogus "undefined" "sequence point warning" } */
a
=
b
++
||
b
++
;
/* { dg-bogus "undefined" "sequence point warning" } */
a
=
(
b
++
?
b
++
:
a
);
/* { dg-bogus "undefined" "sequence point warning" } */
a
=
(
b
++
?
a
:
b
++
);
/* { dg-bogus "undefined" "sequence point warning" } */
ap
[
a
++
]
+=
bp
[
b
];
/* { dg-bogus "undefined" "sequence point warning" } */
(
a
=
b
++
),
(
a
=
b
++
);
/* { dg-bogus "undefined" "bogus sequence point warning" } */
a
=
(
b
++
,
b
++
);
/* { dg-bogus "undefined" "bogus sequence point warning" } */
a
=
b
++
&&
b
++
;
/* { dg-bogus "undefined" "bogus sequence point warning" } */
a
=
b
++
||
b
++
;
/* { dg-bogus "undefined" "bogus sequence point warning" } */
a
=
(
b
++
?
b
++
:
a
);
/* { dg-bogus "undefined" "bogus sequence point warning" } */
a
=
(
b
++
?
a
:
b
++
);
/* { dg-bogus "undefined" "bogus sequence point warning" } */
ap
[
a
++
]
+=
bp
[
b
];
/* { dg-bogus "undefined" "bogus sequence point warning" } */
ap
[
a
+=
1
]
+=
1
;
/* { dg-bogus "undefined" "bogus sequence point warning" } */
}
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