Home | History | Annotate | Download | only in Preprocessor
      1 // RUN: %clang_cc1 -Eonly %s -verify -triple i686-pc-linux-gnu
      2 
      3 // Multiply signed overflow
      4 #if 0x7FFFFFFFFFFFFFFF*2 // expected-warning {{overflow}}
      5 #endif
      6 
      7 // Multiply unsigned overflow
      8 #if 0xFFFFFFFFFFFFFFFF*2
      9 #endif
     10 
     11 // Add signed overflow
     12 #if 0x7FFFFFFFFFFFFFFF+1 // expected-warning {{overflow}}
     13 #endif
     14 
     15 // Add unsigned overflow
     16 #if 0xFFFFFFFFFFFFFFFF+1
     17 #endif
     18 
     19 // Subtract signed overflow
     20 #if 0x7FFFFFFFFFFFFFFF- -1 // expected-warning {{overflow}}
     21 #endif
     22 
     23 // Subtract unsigned overflow
     24 #if 0xFFFFFFFFFFFFFFFF- -1 // expected-warning {{converted from negative value}}
     25 #endif
     26