18 lines · c
1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}}2// Check that the output from -gmodules can be loaded back by the compiler in3// the presence of certain options like optimization level that could break4// output. Note: without compiling twice the module is loaded from the in-memory5// module cache not load it from the object container.6 7// RUN: rm -rf %t8// RUN: %clang_cc1 -x objective-c -fmodules -fmodule-format=obj \9// RUN: -fimplicit-module-maps -fmodules-cache-path=%t %s \10// RUN: -I %S/Inputs -verify -O211 12// Compile again, confirming we can load the module.13// RUN: %clang_cc1 -x objective-c -fmodules -fmodule-format=obj \14// RUN: -fimplicit-module-maps -fmodules-cache-path=%t %s \15// RUN: -I %S/Inputs -verify -O216 17@import DebugObjC;18// expected-no-diagnostics