r279489 - Add the second half of the testcase I should have added in 279485.

Adrian Prantl via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 22 15:30:34 PDT 2016


Author: adrian
Date: Mon Aug 22 17:30:34 2016
New Revision: 279489

URL: http://llvm.org/viewvc/llvm-project?rev=279489&view=rev
Log:
Add the second half of the testcase I should have added in 279485.

Added:
    cfe/trunk/test/Modules/ModuleModuleDebugInfo.cpp

Added: cfe/trunk/test/Modules/ModuleModuleDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Modules/ModuleModuleDebugInfo.cpp?rev=279489&view=auto
==============================================================================
--- cfe/trunk/test/Modules/ModuleModuleDebugInfo.cpp (added)
+++ cfe/trunk/test/Modules/ModuleModuleDebugInfo.cpp Mon Aug 22 17:30:34 2016
@@ -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<F>",
+// CHECK-SAME:                             elements:
+




More information about the cfe-commits mailing list