2017-07-28 22:41:21 +08:00
|
|
|
// RUN: %clang_cc1 -triple i386-apple-darwin9 -Wno-pragma-pack -fsyntax-only -verify %s
|
2010-05-27 08:04:40 +08:00
|
|
|
|
|
|
|
/* expected-warning {{expected 'align' following '#pragma options'}} */ #pragma options
|
|
|
|
/* expected-warning {{expected '=' following '#pragma options align'}} */ #pragma options align
|
|
|
|
/* expected-warning {{expected identifier in '#pragma options'}} */ #pragma options align =
|
|
|
|
/* expected-warning {{invalid alignment option in '#pragma options align'}} */ #pragma options align = foo
|
|
|
|
/* expected-warning {{extra tokens at end of '#pragma options'}} */ #pragma options align = reset foo
|
|
|
|
|
|
|
|
#pragma options align=natural
|
|
|
|
#pragma options align=reset
|
2010-05-27 13:45:51 +08:00
|
|
|
#pragma options align=mac68k
|
2010-05-29 03:43:33 +08:00
|
|
|
#pragma options align=power
|
2010-08-01 03:17:07 +08:00
|
|
|
|
|
|
|
/* expected-warning {{expected '=' following '#pragma align'}} */ #pragma align
|
|
|
|
/* expected-warning {{expected identifier in '#pragma align'}} */ #pragma align =
|
|
|
|
/* expected-warning {{invalid alignment option in '#pragma align'}} */ #pragma align = foo
|
|
|
|
/* expected-warning {{extra tokens at end of '#pragma align'}} */ #pragma align = reset foo
|
|
|
|
|
|
|
|
#pragma align=natural
|
|
|
|
#pragma align=reset
|
|
|
|
#pragma align=mac68k
|
|
|
|
#pragma align=power
|
2013-04-18 09:42:35 +08:00
|
|
|
|
|
|
|
// PR13580
|
|
|
|
struct S
|
|
|
|
{
|
|
|
|
char a[3];
|
|
|
|
#pragma align=packed
|
|
|
|
struct T
|
|
|
|
{
|
|
|
|
char b;
|
|
|
|
int c;
|
|
|
|
} d;
|
|
|
|
};
|