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
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr36227.c
1
/* { dg-do run { target { stdint_types } } } */
2
3
#include <stdint.h>
4
extern void abort (void);
5
int main()
6
{
7
int i = 1;
8
int *p = &i;
9
uintptr_t iptr;
10
11
iptr = (uintptr_t)p - (uintptr_t)&iptr;
12
p = (int *)((uintptr_t)&iptr + iptr);
13
if (*p != 1)
14
abort ();
15
return 0;
16
}
17