projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab4664e
)
Add testcase for pr97695
author
Jan Hubicka
<jh@suse.cz>
Tue, 3 Nov 2020 23:21:40 +0000
(
00:21
+0100)
committer
Jan Hubicka
<jh@suse.cz>
Tue, 3 Nov 2020 23:21:40 +0000
(
00:21
+0100)
* gcc.c-torture/execute/pr97695.c: New test.
gcc/testsuite/gcc.c-torture/execute/pr97695.c
[new file with mode: 0644]
patch
|
blob
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr97695.c
b/gcc/testsuite/gcc.c-torture/execute/pr97695.c
new file mode 100644
(file)
index 0000000..
36f48b4
--- /dev/null
+++ b/
gcc/testsuite/gcc.c-torture/execute/pr97695.c
@@ -0,0
+1,20
@@
+int *a, b, **c = &a, d, e;
+
+int f(int g, int h) { return !h || (g && h == 1) ? 0 : g / h; }
+
+static void *i(int g) {
+ while (e < 2)
+ if (!f(g, 9)) {
+ while (b)
+ ;
+ return 0;
+ }
+ return 0;
+}
+
+void j() {
+ i(1);
+ *c = i(d);
+}
+
+int main() { j(); return 0; }