1// UNSUPPORTED: target={{.*}}-zos{{.*}}, target={{.*}}-aix{{.*}} 2// Test that an @import inside a module is not represented in the debug info. 3 4// REQUIRES: asserts 5 6// RUN: rm -rf %t 7// RUN: %clang_cc1 -x objective-c -fmodules -fmodule-format=obj \ 8// RUN: -fimplicit-module-maps -fmodules-cache-path=%t %s \ 9// RUN: -debugger-tuning=lldb -I %S/Inputs -emit-llvm -o %t.ll \ 10// RUN: -mllvm -debug-only=pchcontainer &>%t-mod.ll 11// RUN: cat %t-mod.ll | FileCheck %s 12 13@import DebugObjCImport.SubModule; 14 15// CHECK: distinct !DICompileUnit(language: DW_LANG_ObjC 16// CHECK: DW_TAG_structure_type, name: "DebugObjCImport" 17// CHECK: ![[HEADER:.*]] = !DIFile(filename: {{.*}}DebugObjCImport.h" 18// CHECK: ![[SUBMOD:.*]] = !DIModule({{.*}}name: "SubModule" 19// CHECK: !DIImportedEntity(tag: DW_TAG_imported_declaration, 20// CHECK-SAME: scope: ![[SUBMOD]], entity: ![[EMPTY:[0-9]+]], 21// CHECK-SAME: file: ![[HEADER]], line: 1) 22// CHECK: ![[EMPTY]] = !DIModule(scope: null, name: "Empty" 23