================
@@ -27,6 +27,9 @@ static_assert(foo[2][3] == &m, "");
 static_assert(foo[2][4] == nullptr, "");
 
 
+const int SomeInt[] = {1};
+int getSomeInt() { return *SomeInt; }
----------------
AaronBallman wrote:

```suggestion
constexpr int SomeInt[] = {1};
constexpr int getSomeInt() { return *SomeInt; }

static_assert(getSomeInt() == 1);
```
so we're testing the decayed pointer.

https://github.com/llvm/llvm-project/pull/72660
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to