summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-11 22:38:07 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-11 22:38:07 +0000
commit5e78cd43a033b3dedf741fca4fa1652f9cb3e41c (patch)
tree00fc7c665562e62d63149fb5556288313c96e339 /test/CodeGenCXX/mangle.cpp
parentffc97ee1d3d5f7d30ed38fd12995e6db010f7dd0 (diff)
Allow us to compute linkage et al for instantiation-dependent types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r--test/CodeGenCXX/mangle.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp
index dd10ca4a21..8f1c682bb0 100644
--- a/test/CodeGenCXX/mangle.cpp
+++ b/test/CodeGenCXX/mangle.cpp
@@ -802,3 +802,11 @@ namespace test33 {
// CHECK: call i32 @_ZN6test333fooINS_1BEEENS_1AIT_Xsr1XIS3_EE5valueEE4typeEv()
}
}
+
+namespace test34 {
+ template<typename T>
+ void f(decltype(sizeof(decltype(T() + T())))) {}
+
+ // CHECK: define weak_odr void @_ZN6test341fIiEEvDTstDTplcvT__EcvS1__EEE
+ template void f<int>(decltype(sizeof(1)));
+}