2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -verify
|
2013-11-25 01:05:58 +08:00
|
|
|
|
|
|
|
// rdar://15522601
|
|
|
|
class MyClass {
|
|
|
|
static void meth();
|
|
|
|
};
|
2014-08-02 08:50:16 +08:00
|
|
|
void MyClass::meth() { } // expected-note {{previous}}
|
2013-11-25 01:05:58 +08:00
|
|
|
extern "C" {
|
|
|
|
void _ZN7MyClass4methEv() { } // expected-error {{definition with same mangled name as another definition}}
|
|
|
|
}
|