mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 04:10:26 +08:00
Add testcase for pr97695
* gcc.c-torture/execute/pr97695.c: New test.
This commit is contained in:
parent
ab4664eb73
commit
2e391ceb77
20
gcc/testsuite/gcc.c-torture/execute/pr97695.c
Normal file
20
gcc/testsuite/gcc.c-torture/execute/pr97695.c
Normal file
@ -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; }
|
Loading…
x
Reference in New Issue
Block a user