Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o %t |
Chris Lattner | 7016a70 | 2007-08-20 22:37:10 +0000 | [diff] [blame] | 2 | |
Mike Stump | 2455636 | 2009-07-25 21:26:53 +0000 | [diff] [blame] | 3 | void f() { |
Chris Lattner | 7016a70 | 2007-08-20 22:37:10 +0000 | [diff] [blame] | 4 | int a[2]; |
| 5 | a[0] = 0; |
| 6 | } |
Devang Patel | 636c3d0 | 2007-10-26 17:44:44 +0000 | [diff] [blame] | 7 | |
Mike Stump | 2455636 | 2009-07-25 21:26:53 +0000 | [diff] [blame] | 8 | void f2() { |
Devang Patel | 636c3d0 | 2007-10-26 17:44:44 +0000 | [diff] [blame] | 9 | int x = 0; |
| 10 | int y = 1; |
| 11 | int a[10] = { y, x, 2, 3}; |
| 12 | int b[10] = { 2,4,x,6,y,8}; |
| 13 | int c[5] = { 0,1,2,3}; |
| 14 | } |