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 Sambucvoid 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