From e5fd2d92cf8e5549f2ee7b2253b6730ee4aaa2db Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 17 Oct 2008 16:05:47 +0000 Subject: [PATCH] Exercise #pragma pack(pop, ) in test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57683 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/pragma-pack.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/Sema/pragma-pack.c b/test/Sema/pragma-pack.c index 471f653a8b..a426025cff 100644 --- a/test/Sema/pragma-pack.c +++ b/test/Sema/pragma-pack.c @@ -19,4 +19,9 @@ /* expected-warning {{value of #pragma pack(show) == 1}} */ #pragma pack(show) #pragma pack(pop, eek) /* expected-warning {{value of #pragma pack(show) == 2}} */ #pragma pack(show) -/* expected-warning {{#pragma pack(pop, ...) failed: stack empty}} */ #pragma pack(pop) +/* expected-warning {{pack(pop, ...) failed: stack empty}} */ #pragma pack(pop) + +#pragma pack(push) +#pragma pack(pop, 16) +/* expected-warning {{value of #pragma pack(show) == 16}} */ #pragma pack(show) + -- 2.40.0