1 //===-- main.c --------------------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 int main (int argc, char const *argv[]) 10 { 11 struct point_tag { 12 int x; 13 int y; 14 }; 15 16 struct rect_tag { 17 struct point_tag bottom_left; 18 struct point_tag top_right; 19 }; 20 char char_16[16] = "Hello World\n"; 21 char *strings[] = { "Hello", "Hola", "Bonjour", "Guten Tag" }; 22 char char_matrix[3][3] = {{'a', 'b', 'c' }, {'d', 'e', 'f' }, {'g', 'h', 'i' }}; 23 char char_matrix_matrix[3][2][3] = 24 { {{'a', 'b', 'c' }, {'d', 'e', 'f' }}, 25 {{'A', 'B', 'C' }, {'D', 'E', 'F' }}, 26 {{'1', '2', '3' }, {'4', '5', '6' }}}; 27 short short_4[4] = { 1,2,3,4 }; 28 short short_matrix[1][2] = { {1,2} }; 29 unsigned short ushort_4[4] = { 1,2,3,4 }; 30 unsigned short ushort_matrix[2][3] = { 31 { 1, 2, 3}, 32 {11,22,33} 33 }; 34 int int_2[2] = { 1, 2 }; 35 unsigned int uint_2[2] = { 1, 2 }; 36 long long_6[6] = { 1, 2, 3, 4, 5, 6 }; 37 unsigned long ulong_6[6] = { 1, 2, 3, 4, 5, 6 }; 38 struct point_tag points_2[2] = { 39 {1,2}, 40 {3,4} 41 }; 42 struct point_tag points_2_4_matrix[2][4] = { // Set break point at this line. 43 {{ 1, 2}, { 3, 4}, { 5, 6}, { 7, 8}}, 44 {{11,22}, {33,44}, {55,66}, {77,88}} 45 }; 46 struct rect_tag rects_2[2] = { 47 {{1,2}, {3,4}}, 48 {{5,6}, {7,8}} 49 }; 50 return 0; 51 } 52