From: Anders Carlsson Date: Wed, 16 Sep 2009 23:53:19 +0000 (+0000) Subject: Add a simple const mangling test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf85b933fef4ce827df83ef2d22c322ab2078aa5;p=clang Add a simple const mangling test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82096 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp index ef36a8b23c..1028defefa 100644 --- a/test/CodeGenCXX/mangle.cpp +++ b/test/CodeGenCXX/mangle.cpp @@ -83,5 +83,10 @@ struct S; // RUN: grep "_Z1fM1SKFvvE" %t | count 1 && void f(void (S::*)() const) {} -// RUN: grep "_Z1fM1SFvvE" %t | count 1 +// RUN: grep "_Z1fM1SFvvE" %t | count 1 && void f(void (S::*)()) {} + +// RUN: grep "_Z1fi" %t | count 1 && +void f(const int) { } + +// RUN: true