Debian Codegraph @

clang/test/Sema/large-bit-int.c

raw
1 // RUN: %clang_cc1 -triple aarch64-unknown-unknown -fexperimental-max-bitint-width=1024 -fsyntax-only -verify %s
2
3 void f() {
4 _Static_assert(__BITINT_MAXWIDTH__ == 1024, "Macro value is unexpected.");
5
6 _BitInt(1024) a;
7 unsigned _BitInt(1024) b;
8
9 _BitInt(8388609) c; // expected-error {{signed _BitInt of bit sizes greater than 1024 not supported}}
10 unsigned _BitInt(0xFFFFFFFFFF) d; // expected-error {{unsigned _BitInt of bit sizes greater than 1024 not supported}}
11 }