brintos

brintos / llvm-project-archived public Read only

0
0
Text · 682 B · acbca79 Raw
32 lines · c
1// RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff  -fxl-pragma-pack -verify -fsyntax-only %s2// RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff  -fxl-pragma-pack -verify -fsyntax-only %s3 4#pragma align(packed)5struct A {  // expected-warning {{#pragma align(packed) may not be compatible with objects generated with AIX XL C/C++}}6  short s1;7  int   : 0;8  short s2;9};10 11struct B {  // expected-warning {{#pragma align(packed) may not be compatible with objects generated with AIX XL C/C++}}12  short a : 8;13  short b : 8;14  int c;15};16 17struct C {18  int x, y, z;19};20 21struct D {22  double d;23  struct A a;24};25#pragma align(reset)26 27struct E {28  int a : 28;29  int   : 0;30  int b : 16;31};32