]> granicus.if.org Git - clang/commitdiff
Module debugging: Add a testcase for standalone forward declarations.
authorAdrian Prantl <aprantl@apple.com>
Sat, 9 Jan 2016 01:11:35 +0000 (01:11 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sat, 9 Jan 2016 01:11:35 +0000 (01:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257241 91177308-0d34-0410-b5e6-96231b3b80d8

test/Modules/Inputs/DebugCXX.h
test/Modules/ModuleDebugInfo.cpp

index c84c691993f62dee58802d3856d396ae6fcbeef3..b6a52579fc3a18051a7641257d49a340ff124bd6 100644 (file)
@@ -56,3 +56,5 @@ class FwdVirtual;
 class FwdVirtual {
   virtual ~FwdVirtual() {}
 };
+
+struct PureForwardDecl;
index ca66a318925e0093faf1bb1f8afc2e95721e9a64..bbe36cb225d0ab9d2edc45a7858f73caa22266a8 100644 (file)
@@ -7,11 +7,13 @@
 // RUN: rm -rf %t
 // RUN: %clang_cc1 -triple %itanium_abi_triple -x objective-c++ -std=c++11 -debug-info-kind=limited -fmodules -fmodule-format=obj -fimplicit-module-maps -DMODULES -fmodules-cache-path=%t %s -I %S/Inputs -I %t -emit-llvm -o %t.ll -mllvm -debug-only=pchcontainer &>%t-mod.ll
 // RUN: cat %t-mod.ll | FileCheck %s
+// RUN: cat %t-mod.ll | FileCheck --check-prefix=CHECK-NEG %s
 // RUN: cat %t-mod.ll | FileCheck --check-prefix=CHECK-DWO %s
 
 // PCH:
 // RUN: %clang_cc1 -triple %itanium_abi_triple -x c++ -std=c++11 -emit-pch -fmodule-format=obj -I %S/Inputs -o %t.pch %S/Inputs/DebugCXX.h -mllvm -debug-only=pchcontainer &>%t-pch.ll
 // RUN: cat %t-pch.ll | FileCheck %s
+// RUN: cat %t-pch.ll | FileCheck --check-prefix=CHECK-NEG %s
 
 #ifdef MODULES
 @import DebugCXX;
@@ -50,3 +52,5 @@
 
 // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "B",
 // no mangled name here yet.
+
+// CHECK-NEG-NOT: !DICompositeType(tag: DW_TAG_structure_type, name: "PureForwardDecl"