[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / large-bit-int.c
blob4c1abf091ab4ba34bfefdb123a4de8bb58d09143
1 // RUN: %clang_cc1 -triple aarch64-unknown-unknown -fexperimental-max-bitint-width=1024 -fsyntax-only -verify %s
3 void f() {
4 _Static_assert(__BITINT_MAXWIDTH__ == 1024, "Macro value is unexpected.");
6 _BitInt(1024) a;
7 unsigned _BitInt(1024) b;
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}}