diff options
author | John McCall <rjmccall@apple.com> | 2012-01-30 18:36:31 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-01-30 18:36:31 +0000 |
commit | 0c8731a2724e1aee3b908dcfd589a89d4b7938e9 (patch) | |
tree | 0e312ced06bdf39a93c3e1c0cd70640766bb6a7e /test/CodeGenCXX/mangle.cpp | |
parent | 013b3668b67c8cb3ad2ee516c5607a3eba11829f (diff) |
Per discussion on cxx-abi-dev, don't drop leading zeroes from the
mangling of floating-point literals. I just went ahead and
reimplemented toString() here; if someone wants to generalize
the library routine to do this, or feels strongly that we should
be post-processing, please feel free.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp index 17232fd060..ba1b3bf5ac 100644 --- a/test/CodeGenCXX/mangle.cpp +++ b/test/CodeGenCXX/mangle.cpp @@ -361,6 +361,14 @@ namespace test0 { j<A>(buffer); } // CHECK: define linkonce_odr void @_ZN5test01jINS_1AEEEvRAszdtcvT__E6buffer_c( + + template <class T> void k(char (&buffer)[sizeof(T() + 0.0f)]) {} + void test5() { + char buffer[sizeof(float)]; + k<float>(buffer); + } + // CHECK: define linkonce_odr void @_ZN5test01kIfEEvRAszplcvT__ELf00000000E_c( + } namespace test1 { |