Daniel Dunbar | 613fd67 | 2010-05-27 00:35:16 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s |
Daniel Dunbar | ea75a82 | 2010-05-27 00:04:40 +0000 | [diff] [blame] | 2 | |
| 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 Dunbar | c6082fe | 2010-05-27 05:45:51 +0000 | [diff] [blame] | 11 | #pragma options align=mac68k |
Daniel Dunbar | 450f793 | 2010-05-28 19:43:33 +0000 | [diff] [blame] | 12 | #pragma options align=power |
Daniel Dunbar | cbb98ed | 2010-07-31 19:17:07 +0000 | [diff] [blame] | 13 | |
| 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 |