blob: 417bbb9cecefc118bebd9c0735503858ce84e7ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}
// Check that the output from -gmodules can be loaded back by the compiler in
// the presence of certain options like optimization level that could break
// output. Note: without compiling twice the module is loaded from the in-memory
// module cache not load it from the object container.
// RUN: rm -rf %t
// RUN: %clang_cc1 -x objective-c -fmodules -fmodule-format=obj \
// RUN: -fimplicit-module-maps -fmodules-cache-path=%t %s \
// RUN: -I %S/Inputs -verify -O2
// Compile again, confirming we can load the module.
// RUN: %clang_cc1 -x objective-c -fmodules -fmodule-format=obj \
// RUN: -fimplicit-module-maps -fmodules-cache-path=%t %s \
// RUN: -I %S/Inputs -verify -O2
@import DebugObjC;
// expected-no-diagnostics
|