repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Skip several analyzer socket tests on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
analyzer
/
infinite-recursion-pr108935-2.c
blob
c46f1f8012c823b84a0539414d7fc1cc3dd8e0a9
1
typedef
struct
{
2
unsigned
done
;
3
}
foo_t
;
4
5
unsigned
foo
(
foo_t
*
f
) {
6
if
(
f
->
done
) {
7
return
f
->
done
;
8
}
9
f
->
done
=
1
;
10
return
foo
(
f
);
/* { dg-bogus "infinite recursion" } */
11
}
12
13
int
main
() {
14
foo_t f
= (
foo_t
){
15
.
done
=
0
,
16
};
17
foo
(&
f
);
18
}