From cf85b933fef4ce827df83ef2d22c322ab2078aa5 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 16 Sep 2009 23:53:19 +0000 Subject: [PATCH] Add a simple const mangling test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82096 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/mangle.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.50.1