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/CodeGen/array.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/CodeGen/array.c (limited to 'test/CodeGen/array.c') diff --git a/test/CodeGen/array.c b/test/CodeGen/array.c new file mode 100644 index 0000000..5bcc26e --- /dev/null +++ b/test/CodeGen/array.c @@ -0,0 +1,14 @@ +// RUN: clang-cc -emit-llvm %s -o %t + +int f() { + int a[2]; + a[0] = 0; +} + +int f2() { + int x = 0; + int y = 1; + int a[10] = { y, x, 2, 3}; + int b[10] = { 2,4,x,6,y,8}; + int c[5] = { 0,1,2,3}; +} -- cgit v1.1