brintos

brintos / llvm-project-archived public Read only

0
0
Text · 267 B · 52f6e92 Raw
18 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s2 3struct X { 4  int array[0]; 5  int array1[0]; 6  int array2[0]; 7  X();8  ~X();9};10 11struct Y {12  int first;13  X padding;14  int second;15};16 17int zero_size_array[(sizeof(Y)  == 8) -1]; // no error here!18