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
Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
ipa-pta-3.c
blob
c3ef3682f2b286572ad819fc5ff29eb9ccf64294
1
/* { dg-do run } */
2
/* { dg-additional-options "-fipa-pta" } */
3
4
extern
void
abort
(
void
);
5
extern
void
*
malloc
(
__SIZE_TYPE__
);
6
7
static int
*
p
;
8
static void
__attribute__
((
noinline
,
noclone
))
foo
()
9
{
10
p
= (
int
*)
malloc
(
24
);
11
*
p
=
2
;
12
}
13
int
main
()
14
{
15
foo
();
16
if
(*
p
!=
2
)
17
abort
();
18
return
0
;
19
}