mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-29 08:19:01 -04:00

Summary: Fix another Z3ConstraintManager crash, use fixAPSInt() to extend a boolean APSInt. Reviewers: george.karpenkov, NoQ, ddcc Reviewed By: george.karpenkov Subscribers: xazax.hun, szepet, a.sidorin, cfe-commits Differential Revision: https://reviews.llvm.org/D47617 llvm-svn: 334065
17 lines
324 B
C
17 lines
324 B
C
// RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux-gnu -analyzer-checker=core -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
// https://bugs.llvm.org/show_bug.cgi?id=37622
|
|
_Bool a() {
|
|
return !({ a(); });
|
|
}
|
|
|
|
// https://bugs.llvm.org/show_bug.cgi?id=37646
|
|
_Bool b;
|
|
void c() {
|
|
_Bool a = b | 0;
|
|
for (;;)
|
|
if (a)
|
|
;
|
|
}
|