brintos

brintos / llvm-project-archived public Read only

0
0
Text · 349 B · c87c99d Raw
18 lines · c
1// RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify2// expected-no-diagnostics3 4// Pragma pack handling with tag declarations5 6struct X;7 8#pragma pack(2)9struct X { int x; };10struct Y;11#pragma pack()12 13struct Y { int y; };14 15extern int check[__alignof(struct X) == 2 ? 1 : -1];16extern int check[__alignof(struct Y) == 4 ? 1 : -1];17 18