Author: Timm Bäder Date: 2024-02-09T16:52:12+01:00 New Revision: fdb16e6fd81b38835795f22730b39b30ddd90f07
URL: https://github.com/llvm/llvm-project/commit/fdb16e6fd81b38835795f22730b39b30ddd90f07 DIFF: https://github.com/llvm/llvm-project/commit/fdb16e6fd81b38835795f22730b39b30ddd90f07.diff LOG: [clang][Interp] Only use __int128 in test case if supported Added: Modified: clang/test/AST/Interp/c.c Removed: ################################################################################ diff --git a/clang/test/AST/Interp/c.c b/clang/test/AST/Interp/c.c index 337a7cf9458a44..bb2c7cffe0330c 100644 --- a/clang/test/AST/Interp/c.c +++ b/clang/test/AST/Interp/c.c @@ -109,4 +109,6 @@ _Static_assert(sizeof(name2) == 0, ""); // expected-error {{failed}} \ // pedantic-expected-error {{failed}} \ // pedantic-expected-note {{evaluates to}} +#ifdef __SIZEOF_INT128__ void *PR28739d = &(&PR28739d)[(__int128)(unsigned long)-1]; // all-warning {{refers past the last possible element}} +#endif _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits