diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr34458.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr34458.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr34458.c b/gcc/testsuite/gcc.c-torture/compile/pr34458.c new file mode 100644 index 000000000..096cc0c9b --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr34458.c @@ -0,0 +1,16 @@ +/* Testcase by Martin Michlmayr <tbm@cyrius.com> */ + +typedef struct +{ + int data[1024]; +} +Lint; +Lint lint_operate (Lint a, long long ammount) +{ + int index; + Lint ret; + for (index = 0; index < 24; index++) + ret.data[index] = + a.data[index + ammount / 32 + 1] << a.data[index + ammount / 32]; + return ret; +} |