repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
opt
/
max1.C
blob
10a6e57d92dd10ab75549a567c1da45f9b51ddff
1
/* PR middle-end/19068 */
2
/* Test case by Andrew Pinski <pinskia@physics.uc.edu> */
3
/* { dg-do run } */
4
/* { dg-options "-O2 -Wno-deprecated" } */
5
6
extern "C" void abort (void);
7
8
long fff[10];
9
10
void f(long a)
11
{
12
int i;
13
a = *((long*)(a+1+sizeof(long))) >? *((long*)(a+1));
14
15
for(i=0;i<10;i++)
16
fff[i] = a;
17
}
18
19
int main(void)
20
{
21
int i;
22
long a[2] = {10,5};
23
f((long)(&a)-1);
24
for(i = 0;i<10;i++)
25
if (fff[i]!=10)
26
abort ();
27
return 0;
28
}
29