diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:02:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:02:28 +0000 |
commit | 7442d6faa2719e4e7d33a7021c406c5a4facd74d (patch) | |
tree | c72b9241553fc9966179aba84f90f17bfa9235c3 /test/Modules/pragma-pack.cpp | |
parent | b52119637f743680a99710ce5fdb6646da2772af (diff) |
Notes
Diffstat (limited to 'test/Modules/pragma-pack.cpp')
-rw-r--r-- | test/Modules/pragma-pack.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Modules/pragma-pack.cpp b/test/Modules/pragma-pack.cpp new file mode 100644 index 0000000000000..96a880c6307b0 --- /dev/null +++ b/test/Modules/pragma-pack.cpp @@ -0,0 +1,25 @@ +// RUN: rm -rf %t.cache %tlocal.cache +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fmodules \ +// RUN: -fimplicit-module-maps -x c++ -emit-module \ +// RUN: -fmodules-cache-path=%t.cache \ +// RUN: -fmodule-name=pragma_pack %S/Inputs/module.map +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fmodules \ +// RUN: -fimplicit-module-maps -x c++ -verify \ +// RUN: -fmodules-cache-path=%t.cache \ +// RUN: -I%S/Inputs %s +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fmodules \ +// RUN: -fmodules-local-submodule-visibility \ +// RUN: -fimplicit-module-maps -x c++ -emit-module \ +// RUN: -fmodules-cache-path=%tlocal.cache \ +// RUN: -fmodule-name=pragma_pack %S/Inputs/module.map +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fmodules \ +// RUN: -fmodules-local-submodule-visibility \ +// RUN: -fimplicit-module-maps -x c++ -verify \ +// RUN: -fmodules-cache-path=%tlocal.cache \ +// RUN: -I%S/Inputs %s + +// Check that we don't serialize pragma pack state until/unless including an +// empty file from the same module (but different submodule) has no effect. +#pragma pack (show) // expected-warning {{value of #pragma pack(show) == 8}} +#include "empty.h" +#pragma pack (show) // expected-warning {{value of #pragma pack(show) == 8}} |