aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Analysis/bitint-no-crash.c
blob: 0a367fa930dc9b199907ddb9552f439b07f26ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
 // RUN: %clang_analyze_cc1 -analyzer-checker=core \
 // RUN:   -analyzer-checker=debug.ExprInspection \
 // RUN:   -triple x86_64-pc-linux-gnu \
 // RUN:   -verify %s

// Don't crash when using _BitInt(). Pin to the x86_64 triple for now,
// since not all architectures support _BitInt()
// expected-no-diagnostics
_BitInt(256) a;
_BitInt(129) b;
void c() {
  b = a;
}