1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s 2*f4a2713aSLionel Sambuc // rdar://8945175 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc struct X { 5*f4a2713aSLionel Sambuc int array[0]; 6*f4a2713aSLionel Sambuc int array1[0]; 7*f4a2713aSLionel Sambuc int array2[0]; 8*f4a2713aSLionel Sambuc X(); 9*f4a2713aSLionel Sambuc ~X(); 10*f4a2713aSLionel Sambuc }; 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc struct Y { 13*f4a2713aSLionel Sambuc int first; 14*f4a2713aSLionel Sambuc X padding; 15*f4a2713aSLionel Sambuc int second; 16*f4a2713aSLionel Sambuc }; 17*f4a2713aSLionel Sambuc 18*f4a2713aSLionel Sambuc int zero_size_array[(sizeof(Y) == 8) -1]; // no error here! 19