]> granicus.if.org Git - clang/commitdiff
[test] Add test case I forgot to add for r195564.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 24 Nov 2013 17:05:58 +0000 (17:05 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 24 Nov 2013 17:05:58 +0000 (17:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195572 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/duplicate-mangled-name.cpp [new file with mode: 0644]

diff --git a/test/CodeGenCXX/duplicate-mangled-name.cpp b/test/CodeGenCXX/duplicate-mangled-name.cpp
new file mode 100644 (file)
index 0000000..892050c
--- /dev/null
@@ -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}}
+}