summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/linkage.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-05-18 00:33:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-05-18 00:33:28 +0000
commitac8b151c4f0478c76a61f2044445b9367fa1a299 (patch)
tree346943b17f22a3509431707ec295d711500930f6 /test/CodeGenCXX/linkage.cpp
parentb509224b28bf7ddb2e4ff1d52855df5b56b44bf4 (diff)
Handle local enum types too.
Thanks to John McCall for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/linkage.cpp')
-rw-r--r--test/CodeGenCXX/linkage.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/linkage.cpp b/test/CodeGenCXX/linkage.cpp
index 732c3cfcc4..ce93161cad 100644
--- a/test/CodeGenCXX/linkage.cpp
+++ b/test/CodeGenCXX/linkage.cpp
@@ -92,3 +92,14 @@ namespace test7 {
void *h() { return g(); }
}
+
+namespace test8 {
+ // CHECK-DAG: define linkonce_odr void @_ZN5test81fIZNS_1gEvE1SEEvT_(
+ template <typename T> void f(T) {}
+ inline void *g() {
+ enum S {
+ };
+ return reinterpret_cast<void *>(f<S>);
+ }
+ void *h() { return g(); }
+}