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