summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/duplicate-mangled-name.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-05-30 01:52:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-05-30 01:52:16 +0000
commitb534510cd55dc979bf6eebd66140cda23ba1f163 (patch)
tree4b706bc1d81ed13881f82f6b30933e0ea1ae18e5 /clang/test/CodeGenCXX/duplicate-mangled-name.cpp
parent4977c375a549c25cea35cf6389f641c58eb3b402 (diff)
downloadbcm5719-llvm-b534510cd55dc979bf6eebd66140cda23ba1f163.tar.gz
bcm5719-llvm-b534510cd55dc979bf6eebd66140cda23ba1f163.zip
Make the mangled name collision diagnostic a bit more useful by listing the mangling.
This helps especially when the collision is for a template specialization, where the template arguments are not available from anywhere else in the diagnostic, and are likely relevant to the problem. llvm-svn: 333489
Diffstat (limited to 'clang/test/CodeGenCXX/duplicate-mangled-name.cpp')
-rw-r--r--clang/test/CodeGenCXX/duplicate-mangled-name.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGenCXX/duplicate-mangled-name.cpp b/clang/test/CodeGenCXX/duplicate-mangled-name.cpp
index 086255260c6..741e021db98 100644
--- a/clang/test/CodeGenCXX/duplicate-mangled-name.cpp
+++ b/clang/test/CodeGenCXX/duplicate-mangled-name.cpp
@@ -11,7 +11,7 @@ class MyClass {
};
void MyClass::meth() { } // expected-note {{previous}}
extern "C" {
- void _ZN7MyClass4methEv() { } // expected-error {{definition with same mangled name as another definition}}
+ void _ZN7MyClass4methEv() { } // expected-error {{definition with same mangled name '_ZN7MyClass4methEv' as another definition}}
}
#elif TEST2
@@ -49,7 +49,7 @@ float foo() {
extern "C" void _ZN2T2D2Ev() {}; // expected-note {{previous definition is here}}
struct T2 {
- ~T2() {} // expected-error {{definition with same mangled name as another definition}}
+ ~T2() {} // expected-error {{definition with same mangled name '_ZN2T2D2Ev' as another definition}}
};
void foo() {
@@ -64,7 +64,7 @@ extern "C" {
}
namespace nm {
- float abc = 2; // expected-error {{definition with same mangled name as another definition}}
+ float abc = 2; // expected-error {{definition with same mangled name '_ZN2nm3abcE' as another definition}}
}
float foo() {
OpenPOWER on IntegriCloud