From f27e5a09a0d815b8a4814152954ff87dadfdefc0 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 2 Jun 2009 17:58:47 +0000 Subject: Import Clang, at r72732. --- test/Sema/PR2727.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Sema/PR2727.c (limited to 'test/Sema/PR2727.c') diff --git a/test/Sema/PR2727.c b/test/Sema/PR2727.c new file mode 100644 index 0000000..52d8392 --- /dev/null +++ b/test/Sema/PR2727.c @@ -0,0 +1,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]); +} -- cgit v1.1