summaryrefslogtreecommitdiffstats
path: root/test/Sema/PR2727.c
blob: 0829dc239df8ca166eb8ef3e30a90dbe5538789b (plain)
1
2
3
4
5
6
7
8
// RUN: clang-cc -verify -fsyntax-only -std=c90 %s
// RUN: clang-cc -verify -fsyntax-only -std=c99 %s

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