OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-01-14 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr42084.c
1
/* { dg-do run } */
2
/* { dg-options "-O1 -fno-delete-null-pointer-checks" } */
3
extern void abort (void);
4
int g = 0;
5
static int __attribute__((noinline)) f (long long a, long long b)
6
{
7
int cmp;
8
cmp = a > b;
9
if (&g == 0)
10
cmp-=2;
11
else
12
cmp++;
13
return cmp;
14
}
15
16
int main (void)
17
{
18
int ret = f (2, 1);
19
if (ret != 2)
20
abort ();
21
return 0;
22
}