aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/nios2/nios2-int-types.c
blob: 21b4a02be9f6ee80cb2d9fc371dec8e957023d63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Test that various types are all derived from int.  */
/* { dg-do compile } */

#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>

extern size_t a;
unsigned int a;
extern unsigned int aa;
size_t aa;

extern ssize_t b;
int b;
extern int bb;
ssize_t bb;

extern ptrdiff_t c;
int c;
extern int cc;
ptrdiff_t cc;

extern intptr_t d;
int d;
extern int dd;
intptr_t dd;

extern uintptr_t e;
unsigned int e;
extern unsigned int ee;
uintptr_t ee;