Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify -fsyntax-only -std=c90 %s |
2 | // RUN: %clang_cc1 -verify -fsyntax-only -std=c99 %s | ||||
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 3 | // expected-no-diagnostics |
Daniel Dunbar | aa1f9f1 | 2008-08-28 18:42:20 +0000 | [diff] [blame] | 4 | |
Daniel Dunbar | 9048891 | 2008-08-28 18:02:04 +0000 | [diff] [blame] | 5 | int f (int x) |
6 | { | ||||
7 | // sizeof applied to a type should not delete the type. | ||||
8 | return sizeof (int[x]); | ||||
9 | } |