llvm-for-llvmta/tools/clang/test/PCH/suspicious-pragma-pack.c

11 lines
318 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 %s -verify -emit-pch -o %t
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 %s -verify -include-pch %t
#ifndef HEADER
#define HEADER
#pragma pack (push, 1)
#else
#pragma pack (2)
#endif
// expected-warning@-4 {{unterminated '#pragma pack (push, ...)' at end of file}}