[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Preprocessor / overflow.c
bloba921441b006d687ff12a792eb116dfac13b46369
1 // RUN: %clang_cc1 -Eonly %s -verify -triple i686-pc-linux-gnu
3 // Multiply signed overflow
4 #if 0x7FFFFFFFFFFFFFFF*2 // expected-warning {{overflow}}
5 #endif
7 // Multiply unsigned overflow
8 #if 0xFFFFFFFFFFFFFFFF*2
9 #endif
11 // Add signed overflow
12 #if 0x7FFFFFFFFFFFFFFF+1 // expected-warning {{overflow}}
13 #endif
15 // Add unsigned overflow
16 #if 0xFFFFFFFFFFFFFFFF+1
17 #endif
19 // Subtract signed overflow
20 #if 0x7FFFFFFFFFFFFFFF- -1 // expected-warning {{overflow}}
21 #endif
23 // Subtract unsigned overflow
24 #if 0xFFFFFFFFFFFFFFFF- -1 // expected-warning {{converted from negative value}}
25 #endif