xref: /llvm-project/clang/test/Analysis/bitint-no-crash.c (revision da26500aa82316f607ddc60e56982775d7f45cff)
1  // RUN: %clang_analyze_cc1 -analyzer-checker=core \
2  // RUN:   -analyzer-checker=debug.ExprInspection \
3  // RUN:   -triple x86_64-pc-linux-gnu \
4  // RUN:   -verify %s
5 
6 // Don't crash when using _BitInt(). Pin to the x86_64 triple for now,
7 // since not all architectures support _BitInt()
8 // expected-no-diagnostics
9 _BitInt(256) a;
10 _BitInt(129) b;
c()11 void c() {
12   b = a;
13 }
14