minix/external/bsd/llvm/dist/clang/test/Sema/pragma-pack-6.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

17 lines
349 B
C

// RUN: %clang_cc1 -triple i686-apple-darwin9 %s -fsyntax-only -verify
// expected-no-diagnostics
// Pragma pack handling with tag declarations
struct X;
#pragma pack(2)
struct X { int x; };
struct Y;
#pragma pack()
struct Y { int y; };
extern int check[__alignof(struct X) == 2 ? 1 : -1];
extern int check[__alignof(struct Y) == 4 ? 1 : -1];