[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / no-warn-void-ptr-uneval.c
blobcc93efcda68f16dbf188c1f946ae7b924c5963c0
1 // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify -std=gnu89 %s
4 // expected-no-diagnostics
5 void foo(void *vp) {
6 sizeof(*vp);
7 sizeof(*(vp));
8 void inner(typeof(*vp));