xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/duplicate-mangled-name.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -verify
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc // rdar://15522601
4*0a6a1f1dSLionel Sambuc class MyClass {
5*0a6a1f1dSLionel Sambuc  static void meth();
6*0a6a1f1dSLionel Sambuc };
meth()7*0a6a1f1dSLionel Sambuc void MyClass::meth() { } // expected-note {{previous}}
8*0a6a1f1dSLionel Sambuc extern "C" {
_ZN7MyClass4methEv()9*0a6a1f1dSLionel Sambuc   void _ZN7MyClass4methEv() { } // expected-error {{definition with same mangled name as another definition}}
10*0a6a1f1dSLionel Sambuc }
11