aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/cast1.d
blob: 3fe7d99c0318751573ebacbab0ddf52f8f6aad54 (plain)
1
2
3
4
5
6
7
// { dg-do compile }
float bug8060(float x)
{
    int i = *cast(int*)&x;
    ++i;
    return *cast(float*)&i;
}