Clang Project

clang_source_code/test/Modules/DebugInfo-fmodule-name.c
1// RUN: rm -rf %t
2// RUN: %clang_cc1 -fmodules -fmodule-format=obj -fmodule-name=MainA \
3// RUN:     -debug-info-kind=limited -dwarf-ext-refs \
4// RUN:     -fimplicit-module-maps -x c -fmodules-cache-path=%t -F %S/Inputs \
5// RUN:     %s -S -emit-llvm -debugger-tuning=lldb -o - | FileCheck %s
6
7#include "MainA/MainPriv.h"
8
9// CHECK: !DICompileUnit
10// CHECK-NOT: dwoId:
11
12// We still want the import, but no skeleton CU, since no PCM was built.
13
14// CHECK: !DIModule({{.*}}, name: "APriv"
15// CHECK-NOT: !DICompileUnit
16// CHECK-NOT: dwoId:
17