1613fd67e575ff1c038535b18dafebca070f3ed91Daniel Dunbar// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
2ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar
3ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar/* expected-warning {{expected 'align' following '#pragma options'}} */ #pragma options
4ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar/* expected-warning {{expected '=' following '#pragma options align'}} */ #pragma options align
5ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar/* expected-warning {{expected identifier in '#pragma options'}} */ #pragma options align =
6ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar/* expected-warning {{invalid alignment option in '#pragma options align'}} */ #pragma options align = foo
7ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar/* expected-warning {{extra tokens at end of '#pragma options'}} */ #pragma options align = reset foo
8ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar
9ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar#pragma options align=natural
10ea75a8286fb87ce7549e08d9dcb597f91479f54dDaniel Dunbar#pragma options align=reset
11c6082fe347a414a2e19f2ad8fe41720f10733296Daniel Dunbar#pragma options align=mac68k
12450f79340808e54cd4b39738f943217f6fc0c2beDaniel Dunbar#pragma options align=power
13cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar
14cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar/* expected-warning {{expected '=' following '#pragma align'}} */ #pragma align
15cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar/* expected-warning {{expected identifier in '#pragma align'}} */ #pragma align =
16cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar/* expected-warning {{invalid alignment option in '#pragma align'}} */ #pragma align = foo
17cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar/* expected-warning {{extra tokens at end of '#pragma align'}} */ #pragma align = reset foo
18cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar
19cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar#pragma align=natural
20cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar#pragma align=reset
21cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar#pragma align=mac68k
22cbb98edd530787c2ac019e437e7c599df8004ba7Daniel Dunbar#pragma align=power
23bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis
24bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis// PR13580
25bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidisstruct S
26bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis{
27bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis  char a[3];
28bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis#pragma align=packed
29bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis  struct T
30bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis  {
31bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis    char b;
32bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis    int c;
33bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis  } d;
34bd95745d0efb0d3c6e7cc2f946438a8b2c39c858Argyrios Kyrtzidis};
35