blob: 7844e7108060ad9b71e247b442f19e14f423d5ad [file] [log] [blame]
Daniel Dunbar613fd672010-05-27 00:35:16 +00001// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
Daniel Dunbarea75a822010-05-27 00:04:40 +00002
3/* expected-warning {{expected 'align' following '#pragma options'}} */ #pragma options
4/* expected-warning {{expected '=' following '#pragma options align'}} */ #pragma options align
5/* expected-warning {{expected identifier in '#pragma options'}} */ #pragma options align =
6/* expected-warning {{invalid alignment option in '#pragma options align'}} */ #pragma options align = foo
7/* expected-warning {{extra tokens at end of '#pragma options'}} */ #pragma options align = reset foo
8
9#pragma options align=natural
10#pragma options align=reset
Daniel Dunbarc6082fe2010-05-27 05:45:51 +000011#pragma options align=mac68k
Daniel Dunbar450f7932010-05-28 19:43:33 +000012#pragma options align=power
Daniel Dunbarcbb98ed2010-07-31 19:17:07 +000013
14/* expected-warning {{expected '=' following '#pragma align'}} */ #pragma align
15/* expected-warning {{expected identifier in '#pragma align'}} */ #pragma align =
16/* expected-warning {{invalid alignment option in '#pragma align'}} */ #pragma align = foo
17/* expected-warning {{extra tokens at end of '#pragma align'}} */ #pragma align = reset foo
18
19#pragma align=natural
20#pragma align=reset
21#pragma align=mac68k
22#pragma align=power