From: Adrian Prantl Date: Mon, 22 Aug 2016 22:30:34 +0000 (+0000) Subject: Add the second half of the testcase I should have added in 279485. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c298767e8ef2befc942c4d886233ee1a8b9dcd49;p=clang Add the second half of the testcase I should have added in 279485. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279489 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Modules/ModuleModuleDebugInfo.cpp b/test/Modules/ModuleModuleDebugInfo.cpp new file mode 100644 index 0000000000..abc4bfd56b --- /dev/null +++ b/test/Modules/ModuleModuleDebugInfo.cpp @@ -0,0 +1,18 @@ +// RUN: rm -rf %t + +// RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=standalone \ +// RUN: -dwarf-ext-refs -fmodules \ +// RUN: -fmodule-format=obj -fimplicit-module-maps -DMODULES \ +// RUN: -triple %itanium_abi_triple \ +// RUN: -fmodules-cache-path=%t %s -I %S/Inputs -I %t -emit-llvm -o - \ +// RUN: | FileCheck %s + +#include "DebugNestedB.h" +AF af; // This type is not anchored in the module. + +// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "AF", +// CHECK-SAME: baseType: ![[AF:.*]]) + +// CHECK: ![[AF]] = {{.*}}!DICompositeType(tag: DW_TAG_structure_type, name: "A", +// CHECK-SAME: elements: +