blob: 52d8392ee9e57d756c1aac22efaffd1b26cb78ae [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -verify -fsyntax-only -std=c90 %s &&
2// RUN: clang-cc -verify -fsyntax-only -std=c99 %s
Daniel Dunbaraa1f9f12008-08-28 18:42:20 +00003
Daniel Dunbar90488912008-08-28 18:02:04 +00004int f (int x)
5{
6 // sizeof applied to a type should not delete the type.
7 return sizeof (int[x]);
8}