================
@@ -35,6 +35,22 @@ _Static_assert(OBJECT_SIZE_BUILTIN((void *)0, -1), ""); //
expected-error {{stat
_Static_assert(OBJECT_SIZE_BUILTIN((void *)0, 4), ""); // expected-error
{{static assertion expression is not an integral constant expression}} \
expected-note
{{argument value 4 is outside the valid range [0, 3]}}
+_Static_assert(OBJECT_SIZE_BUILTIN((void *)0, 1 / 0), ""); // expected-error
{{static assertion expression is not an integral constant expression}} \
+ expected-note
{{division by zero}}
----------------
tbaederr wrote:
```suggestion
expected-note
{{division by zero}}
```
https://github.com/llvm/llvm-project/pull/231793
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits