[clang] fix bug that undefined internal is a warning only for -pedantic-errors (PR #98016)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 11 05:06:54 PDT 2024


================
@@ -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


More information about the cfe-commits mailing list