xref: /aosp_15_r20/external/clang/test/Sema/PR2727.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s
2*67e74705SXin Li // RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s
3*67e74705SXin Li // expected-no-diagnostics
4*67e74705SXin Li 
f(int x)5*67e74705SXin Li int f (int x)
6*67e74705SXin Li {
7*67e74705SXin Li   // sizeof applied to a type should not delete the type.
8*67e74705SXin Li   return sizeof (int[x]);
9*67e74705SXin Li }
10