2010-01-01 10:34:51 +00:00
|
|
|
// RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s
|
|
|
|
// RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s
|
2012-12-02 13:20:44 +00:00
|
|
|
// expected-no-diagnostics
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
int f (int x)
|
|
|
|
{
|
|
|
|
// sizeof applied to a type should not delete the type.
|
|
|
|
return sizeof (int[x]);
|
|
|
|
}
|