aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/PR2727.c
blob: 52d8392ee9e57d756c1aac22efaffd1b26cb78ae (plain) (blame)
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]);
}