[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / pragma-options.c
bloba35f0b087eb6482d9ac401eb6b02ae8a87928180
1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -Wno-pragma-pack -fsyntax-only -verify %s
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
9 #pragma options align=natural
10 #pragma options align=reset
11 #pragma options align=mac68k
12 #pragma options align=power
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
19 #pragma align=natural
20 #pragma align=reset
21 #pragma align=mac68k
22 #pragma align=power
24 // PR13580
25 struct S
27 char a[3];
28 #pragma align=packed
29 struct T
31 char b;
32 int c;
33 } d;