diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20001017-2.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20001017-2.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20001017-2.c b/gcc/testsuite/gcc.c-torture/execute/20001017-2.c new file mode 100644 index 000000000..3263bb9b5 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20001017-2.c @@ -0,0 +1,17 @@ +void +fn_4parms (unsigned char a, long *b, long *c, unsigned int *d) +{ + if (*b != 1 || *c != 2 || *d != 3) + abort (); +} + +int +main () +{ + unsigned char a = 0; + unsigned long b = 1, c = 2; + unsigned int d = 3; + + fn_4parms (a, &b, &c, &d); + return 0; +} |