summaryrefslogtreecommitdiff
path: root/clang/test/Sema/PR2727.c
blob: 332b0df72835017e58f7a3ca3dab64f4c101fcef (about) (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s
// RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s

int f (int x)
{
  // sizeof applied to a type should not delete the type.
  return sizeof (int[x]);
}