26 lines · c
1// RUN: %clang_cc1 -Eonly %s -verify -triple i686-pc-linux-gnu2 3// Multiply signed overflow4#if 0x7FFFFFFFFFFFFFFF*2 // expected-warning {{overflow}}5#endif6 7// Multiply unsigned overflow8#if 0xFFFFFFFFFFFFFFFF*29#endif10 11// Add signed overflow12#if 0x7FFFFFFFFFFFFFFF+1 // expected-warning {{overflow}}13#endif14 15// Add unsigned overflow16#if 0xFFFFFFFFFFFFFFFF+117#endif18 19// Subtract signed overflow20#if 0x7FFFFFFFFFFFFFFF- -1 // expected-warning {{overflow}}21#endif22 23// Subtract unsigned overflow24#if 0xFFFFFFFFFFFFFFFF- -1 // expected-warning {{converted from negative value}}25#endif26