brintos

brintos / llvm-project-archived public Read only

0
0
Text · 492 B · 4c1abf0 Raw
12 lines · c
1// RUN: %clang_cc1 -triple aarch64-unknown-unknown -fexperimental-max-bitint-width=1024 -fsyntax-only -verify %s2 3void 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}12