mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 00:26:06 +00:00

Follow up to D134702; it looks like we were still warning for gnu89 mode. Link: https://reviews.llvm.org/D134702 Link: https://github.com/ClangBuiltLinux/linux/issues/1720#issuecomment-1265738778 Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D135090
10 lines
245 B
C
10 lines
245 B
C
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s
|
|
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify -std=gnu89 %s
|
|
|
|
// expected-no-diagnostics
|
|
void foo(void *vp) {
|
|
sizeof(*vp);
|
|
sizeof(*(vp));
|
|
void inner(typeof(*vp));
|
|
}
|