2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s
|
|
|
|
// RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2008-08-29 02:42:20 +08:00
|
|
|
|
2008-08-29 02:02:04 +08:00
|
|
|
int f (int x)
|
|
|
|
{
|
|
|
|
// sizeof applied to a type should not delete the type.
|
|
|
|
return sizeof (int[x]);
|
|
|
|
}
|