================
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s -pedantic-errors
+
+// expected-no-diagnostics
+
+static int f(void);
+
+int main(void)
+{
+ int x = sizeof f();
----------------
AaronBallman wrote:
```suggestion
int x = sizeof(f);
```
https://github.com/llvm/llvm-project/pull/98016
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
