diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2017-07-31 13:37:50 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2017-07-31 13:37:50 +0000 |
| commit | a1479d798870798277e70006cfe1e131c2c0a37c (patch) | |
| tree | a8f2d0d67aa88983fa94b8f18696ac53eec23f6a /clang/test/FixIt | |
| parent | e841b214b15bcc6044ffbe61f60b78b6a7c64492 (diff) | |
| download | bcm5719-llvm-a1479d798870798277e70006cfe1e131c2c0a37c.tar.gz bcm5719-llvm-a1479d798870798277e70006cfe1e131c2c0a37c.zip | |
-Wpragma-pack: add an additional note and fixit when warning
about unterminated push directives that are followed by a reset
('#pragma pack()')
This has been suggested by Hans Wennborg.
llvm-svn: 309559
Diffstat (limited to 'clang/test/FixIt')
| -rw-r--r-- | clang/test/FixIt/fixit-pragma-pack.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-pragma-pack.c b/clang/test/FixIt/fixit-pragma-pack.c new file mode 100644 index 00000000000..acab4a8bb43 --- /dev/null +++ b/clang/test/FixIt/fixit-pragma-pack.c @@ -0,0 +1,5 @@ +// RUN: %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s + +#pragma pack (push, 1) +#pragma pack() +// CHECK: fix-it:{{.*}}:{[[@LINE-1]]:14-[[@LINE-1]]:14}:"pop" |

