[test-suite] r220538 - Adjusted the test to r218293, fix for Bug21034, mangling of casts

Sunil Srivastava sunil_srivastava at playstation.sony.com
Thu Oct 23 16:56:20 PDT 2014


Author: ssrivastava
Date: Thu Oct 23 18:56:20 2014
New Revision: 220538

URL: http://llvm.org/viewvc/llvm-project?rev=220538&view=rev
Log:
Adjusted the test to r218293, fix for Bug21034, mangling of casts

Modified:
    test-suite/trunk/ABI-Testsuite/test/mangling/expressions.xpp

Modified: test-suite/trunk/ABI-Testsuite/test/mangling/expressions.xpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/ABI-Testsuite/test/mangling/expressions.xpp?rev=220538&r1=220537&r2=220538&view=diff
==============================================================================
--- test-suite/trunk/ABI-Testsuite/test/mangling/expressions.xpp (original)
+++ test-suite/trunk/ABI-Testsuite/test/mangling/expressions.xpp Thu Oct 23 18:56:20 2014
@@ -123,7 +123,7 @@ template <typename T> void q(decltype(ty
 template <> void q<int>(decltype(typeid(sizeof(int)))) {}
 
 // dynamic cast
-// CHECK-DAG: _Z2dyI1BEvDTcvPT_nw_1ApiEE
+// CHECK-DAG: _Z2dyI1BEvDTdcPT_nw_1ApiEE
 class A { 
     virtual void foo();
     virtual ~A();
@@ -135,20 +135,20 @@ template<class T> void dy(decltype(dynam
 template <> void dy<B>(decltype(dynamic_cast<B*>(new A()))) {} 
 
 // static cast
-// CHECK-DAG: _Z2stIlLi3EEvPAcvT_T0__i
+// CHECK-DAG: _Z2stIlLi3EEvPAscT_T0__i
 template<class T, int N> void st(int (*)[static_cast<T>(N)]) {}
 template <> void st<long, 3>(int (*)[3l]) {} 
 
 // const cast
 // CHECK-DAG: _Z10intfactoryv
-// CHECK-DAG: _Z2coIRiEvDTcvT_clL_Z10intfactoryvEEE
+// CHECK-DAG: _Z2coIRiEvDTccT_clL_Z10intfactoryvEEE
 const int& cref_i = 5;
 const int& intfactory() { return cref_i; }
 template<class T> void co(decltype(const_cast<T>(intfactory())));
 template <> void co<int&>(decltype(const_cast<int&>(intfactory()))) {} 
 
 // reinterpret cast
-// CHECK-DAG: _Z2reIjLi3EEvDTcvPT_T0_E
+// CHECK-DAG: _Z2reIjLi3EEvDTrcPT_T0_E
 template<class T, int N> void re(decltype(reinterpret_cast<T*>(N)));
 template <> void re<unsigned , 3>(decltype(reinterpret_cast<unsigned*>(3))) {} 
 
@@ -244,3 +244,7 @@ struct O {
     template <class T> auto g() -> decltype (this->m.f<T>());
 };
 template <> int O::g<int>() { return 0; }
+//
+//
+//
+//





More information about the llvm-commits mailing list