1 // RUN: %clang_cc1 -Eonly %s -verify -triple i686-pc-linux-gnu
3 // Multiply signed overflow
4 #if 0x7FFFFFFFFFFFFFFF*2 // expected-warning {{overflow}}
7 // Multiply unsigned overflow
8 #if 0xFFFFFFFFFFFFFFFF*2
11 // Add signed overflow
12 #if 0x7FFFFFFFFFFFFFFF+1 // expected-warning {{overflow}}
15 // Add unsigned overflow
16 #if 0xFFFFFFFFFFFFFFFF+1
19 // Subtract signed overflow
20 #if 0x7FFFFFFFFFFFFFFF- -1 // expected-warning {{overflow}}
23 // Subtract unsigned overflow
24 #if 0xFFFFFFFFFFFFFFFF- -1 // expected-warning {{converted from negative value}}