aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20001017-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20001017-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20001017-2.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20001017-2.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/20001017-2.c
new file mode 100644
index 000000000..3263bb9b5
--- /dev/null
+++ b/gcc-4.9/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;
+}