| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c99" } */ |
| 3 |
|
| 4 |
#include <stdint.h> |
| 5 |
|
| 6 |
void param_test(short int my_short, int my_int, long int my_long, |
| 7 |
long long int my_long_long, int8_t my_int8_t, |
| 8 |
int_least8_t my_int_least8_t, int_fast8_t my_int_fast8_t, |
| 9 |
int16_t my_int16_t, int_least16_t my_int_least16_t, |
| 10 |
int_fast16_t my_int_fast16_t, int32_t my_int32_t, |
| 11 |
int_least32_t my_int_least32_t, int_fast32_t my_int_fast32_t, |
| 12 |
int64_t my_int64_t, int_least64_t my_int_least64_t, |
| 13 |
int_fast64_t my_int_fast64_t, intmax_t my_intmax_t, |
| 14 |
intptr_t my_intptr_t, float my_float, double my_double, |
| 15 |
long double my_long_double, char my_char, _Bool my_bool); |
| 16 |
|
| 17 |
|
| 18 |
int main(int argc, char **argv) |
| 19 |
{ |
| 20 |
short int my_short = 1; |
| 21 |
int my_int = 2; |
| 22 |
long int my_long = 3; |
| 23 |
long long int my_long_long = 4; |
| 24 |
int8_t my_int8_t = 1; |
| 25 |
int_least8_t my_int_least8_t = 2; |
| 26 |
int_fast8_t my_int_fast8_t = 3; |
| 27 |
int16_t my_int16_t = 1; |
| 28 |
int_least16_t my_int_least16_t = 2; |
| 29 |
int_fast16_t my_int_fast16_t = 3; |
| 30 |
int32_t my_int32_t = 1; |
| 31 |
int_least32_t my_int_least32_t = 2; |
| 32 |
int_fast32_t my_int_fast32_t = 3; |
| 33 |
int64_t my_int64_t = 1; |
| 34 |
int_least64_t my_int_least64_t = 2; |
| 35 |
int_fast64_t my_int_fast64_t = 3; |
| 36 |
intmax_t my_intmax_t = 1; |
| 37 |
intptr_t my_intptr_t = 0; |
| 38 |
float my_float = 1.0; |
| 39 |
double my_double = 2.0; |
| 40 |
long double my_long_double = 3.0; |
| 41 |
char my_char = 'y'; |
| 42 |
_Bool my_bool = 1; |
| 43 |
|
| 44 |
param_test(my_short, my_int, my_long, my_long_long, my_int8_t, |
| 45 |
my_int_least8_t, my_int_fast8_t, my_int16_t, |
| 46 |
my_int_least16_t, my_int_fast16_t, my_int32_t, |
| 47 |
my_int_least32_t, my_int_fast32_t, my_int64_t, |
| 48 |
my_int_least64_t, my_int_fast64_t, my_intmax_t, |
| 49 |
my_intptr_t, my_float, my_double, my_long_double, my_char, |
| 50 |
my_bool); |
| 51 |
|
| 52 |
return 0; |
| 53 |
}/* end main() */ |