[clang] [Clang] add wraps and no_wraps attributes (PR #115094)
Marco Elver via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 8 03:13:28 PST 2024
================
@@ -0,0 +1,48 @@
+// RUN: %clang_cc1 %s -verify -fsyntax-only -triple x86_64-pc-linux-gnu
+typedef int __attribute__((wraps)) wrapping_int;
----------------
melver wrote:
Can we test more types?
Can the attributes be applied to pointers? Both the pointer itself and the pointee? It's worth adding tests, just to ensure nothing regresses here.
https://github.com/llvm/llvm-project/pull/115094
More information about the cfe-commits
mailing list