r195572 - [test] Add test case I forgot to add for r195564.

Argyrios Kyrtzidis akyrtzi at gmail.com
Sun Nov 24 09:05:58 PST 2013


Author: akirtzidis
Date: Sun Nov 24 11:05:58 2013
New Revision: 195572

URL: http://llvm.org/viewvc/llvm-project?rev=195572&view=rev
Log:
[test] Add test case I forgot to add for r195564.

Added:
    cfe/trunk/test/CodeGenCXX/duplicate-mangled-name.cpp

Added: cfe/trunk/test/CodeGenCXX/duplicate-mangled-name.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/duplicate-mangled-name.cpp?rev=195572&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/duplicate-mangled-name.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/duplicate-mangled-name.cpp Sun Nov 24 11:05:58 2013
@@ -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}}
+}





More information about the cfe-commits mailing list