diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-02-18 07:47:09 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-02-18 07:47:09 +0000 |
commit | 7ff7eb706a0b05548efa696559b0a0a67ef5bf35 (patch) | |
tree | 2a558d1945b67c67c9a0c7d7d5f53c4bf26810f0 /clang/test/CodeGenCXX/visibility.cpp | |
parent | 55ac42426e7a7e271814e40ad078fd7c131819e3 (diff) | |
download | bcm5719-llvm-7ff7eb706a0b05548efa696559b0a0a67ef5bf35.tar.gz bcm5719-llvm-7ff7eb706a0b05548efa696559b0a0a67ef5bf35.zip |
Itanium ABI: Mangle <mangled-name> according to the ABI
We attempted to be compatible with GCC's buggy mangling for templates
with a declaration for a template argument.
However, we weren't completely successful in copying their bug in cases
like:
char foo;
template <char &C> decltype(C) f() { return foo; };
template char &f<foo>();
Instead, just follow the ABI specification. This fixes PR22621.
llvm-svn: 229644
Diffstat (limited to 'clang/test/CodeGenCXX/visibility.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/visibility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/visibility.cpp b/clang/test/CodeGenCXX/visibility.cpp index e0271099e2a..7239cbe0022 100644 --- a/clang/test/CodeGenCXX/visibility.cpp +++ b/clang/test/CodeGenCXX/visibility.cpp @@ -240,7 +240,7 @@ namespace Test7 { class B : public A {}; B b; // top of file - // CHECK-LABEL: define linkonce_odr hidden void @_ZN5Test74ArefILZNS_1aEEE3fooEv() + // CHECK-LABEL: define linkonce_odr hidden void @_ZN5Test74ArefIL_ZNS_1aEEE3fooEv() void test() { Aref<a>::foo(); } |