diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-01-09 01:11:35 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-01-09 01:11:35 +0000 |
commit | 35e765baffa5fe7575e57a836cb69dfc0dfc9576 (patch) | |
tree | e82e4d5732d0da102235ccc83c17949e4aff0da9 /clang/test/Modules/ModuleDebugInfo.cpp | |
parent | fc014f27feb5fe75e7d21507b2b1b0887b159717 (diff) | |
download | llvm-35e765baffa5fe7575e57a836cb69dfc0dfc9576.zip llvm-35e765baffa5fe7575e57a836cb69dfc0dfc9576.tar.gz llvm-35e765baffa5fe7575e57a836cb69dfc0dfc9576.tar.bz2 |
Module debugging: Add a testcase for standalone forward declarations.
llvm-svn: 257241
Diffstat (limited to 'clang/test/Modules/ModuleDebugInfo.cpp')
-rw-r--r-- | clang/test/Modules/ModuleDebugInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/ModuleDebugInfo.cpp b/clang/test/Modules/ModuleDebugInfo.cpp index ca66a31..bbe36cb 100644 --- a/clang/test/Modules/ModuleDebugInfo.cpp +++ b/clang/test/Modules/ModuleDebugInfo.cpp @@ -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" |