llvm-project/clang/test/Sema/pragma-pack-apple.c
Alp Toker 11a71128b7 Forbid driver use in Sema tests
This ports the last Sema tests over to use the frontend directly, and adds a
local lit substitution to disable inappropriate %clang usage under this
directory.

llvm-svn: 199348
2014-01-16 02:37:08 +00:00

11 lines
289 B
C

// RUN: %clang_cc1 -fsyntax-only %s 2>&1 | FileCheck %s
// RUN: %clang_cc1 -fsyntax-only -fapple-pragma-pack %s 2>&1 | FileCheck -check-prefix=CHECK-APPLE %s
#pragma pack(push,1)
#pragma pack(2)
#pragma pack()
#pragma pack(show)
// CHECK: pack(show) == 8
// CHECK-APPLE: pack(show) == 1