summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/920413-1.c
blob: 45b5fc5d09cb554423796b74c332ddb3f86c46ac (plain)
1
2
union u {double d;long long ll;};
f(double x, int n){union u v;v.d=x;if(n>=0){v.ll<<=63;}else{v.ll+=1<<-n;v.ll>>=-n;}return v.ll;}