diff options
author | Reid Kleckner <rnk@google.com> | 2017-08-08 01:33:53 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-08-08 01:33:53 +0000 |
commit | 1da06c3dc3bbfc3183eb92bbbcb068a6fa6dd64b (patch) | |
tree | 319d63f4329aad641775cff2c0cb18d254db7282 /test/CodeGenCXX/debug-info-codeview-display-name.cpp | |
parent | 6dad790d8f716b965ba714aa3710af5648069f76 (diff) |
[codeview] Fix class name formatting
In particular, removes spaces between template arguments of class
templates to better match VS type visualizers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-codeview-display-name.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-codeview-display-name.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/CodeGenCXX/debug-info-codeview-display-name.cpp b/test/CodeGenCXX/debug-info-codeview-display-name.cpp index b1b5a1e9ac..17049d506f 100644 --- a/test/CodeGenCXX/debug-info-codeview-display-name.cpp +++ b/test/CodeGenCXX/debug-info-codeview-display-name.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -fblocks -debug-info-kind=limited -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -std=c++98 | \ -// RUN: grep 'DISubprogram' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ +// RUN: grep 'DISubprogram\|DICompositeType' | sed -e 's/.*name: "\([^"]*\)".*/"\1"/' | \ // RUN: FileCheck %s --check-prefix=CHECK --check-prefix=UNQUAL // RUN: %clang_cc1 -fblocks -debug-info-kind=line-tables-only -gcodeview -emit-llvm %s \ // RUN: -o - -triple=x86_64-pc-win32 -std=c++98 | \ @@ -91,3 +91,8 @@ void fn_tmpl() {} template void fn_tmpl<int, freefunc>(); // CHECK-DAG: "fn_tmpl<int,&freefunc>" + +template <typename A, typename B, typename C> struct ClassTemplate { A a; B b; C c; }; +ClassTemplate<char, short, ClassTemplate<int, int, int> > f; +// This will only show up in normal debug builds. +// UNQUAL-DAG: "ClassTemplate<char,short,ClassTemplate<int,int,int> >" |