From: Argyrios Kyrtzidis Date: Sun, 24 Nov 2013 17:05:58 +0000 (+0000) Subject: [test] Add test case I forgot to add for r195564. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d45f07bd8bfcc7f8f276e92e0032bc8d9179c42;p=clang [test] Add test case I forgot to add for r195564. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195572 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/duplicate-mangled-name.cpp b/test/CodeGenCXX/duplicate-mangled-name.cpp new file mode 100644 index 0000000000..892050c668 --- /dev/null +++ b/test/CodeGenCXX/duplicate-mangled-name.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -emit-llvm-only %s -verify + +// rdar://15522601 +class MyClass { + static void meth(); +}; +void MyClass::meth() { } +extern "C" { + void _ZN7MyClass4methEv() { } // expected-error {{definition with same mangled name as another definition}} +}