aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/duplicate-mangled-name.cpp
blob: e57012e8c414daa6e813ec1713f5cf2901721e0a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -verify

// rdar://15522601
class MyClass {
 static void meth();
};
void MyClass::meth() { } // expected-note {{previous}}
extern "C" {
  void _ZN7MyClass4methEv() { } // expected-error {{definition with same mangled name as another definition}}
}