Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Sema/integer-overflow.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
201 { | 201 { |
202 .a4 = 4 * 1024 * 1024 * 1024 // expected-warning {{overflow in expression; result is 0 with type 'int'}} | 202 .a4 = 4 * 1024 * 1024 * 1024 // expected-warning {{overflow in expression; result is 0 with type 'int'}} |
203 } | 203 } |
204 } | 204 } |
205 }; | 205 }; |
206 | |
207 void PR49619() { | |
208 int n; | |
209 n = ({ | |
210 while (1) | |
211 ; | |
212 0; | |
213 }); | |
214 } |