summaryrefslogtreecommitdiffstats
path: root/libacc/tests/data/b2071670.c
blob: 311bc4f49c24949a4486b986de54b02428bf3c90 (plain)
1
2
3
4
5
6
7
8
9
// See http://b/2071670

int main() {
    float f = 10.0f;
    float* floatPointer = &f;
    // The following line used to incorrectly error: "Incompatible pointer or array types"
    int* buffer = (int*) floatPointer;
    return *buffer;
}