diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-20 18:50:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-20 18:50:12 +0000 |
commit | 47167344d4d8ba33cbdce62046e356620f39a4c3 (patch) | |
tree | d9e9c1ee5208ef1eee6983e23807c89a8f7e6a4b /test/CodeGenCXX/mangle.cpp | |
parent | 4c459707fd74752d8c74e009dbd8983c7050ffa5 (diff) |
Fix actually-reachable llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292632 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp index 3a94071294..229a0799d1 100644 --- a/test/CodeGenCXX/mangle.cpp +++ b/test/CodeGenCXX/mangle.cpp @@ -1125,3 +1125,14 @@ namespace test57 { // CHECK-LABEL: @_ZN6test571fILi0EEEvDTplcldtL_ZNS_1xEE1fIXLi0EEEET_E template void f<0>(int); } + +namespace test58 { + struct State { + bool m_fn1(); + } a; + template <class T> struct identity_ { typedef T type; }; + struct A { + template <typename T> A(T, bool (identity_<T>::type::*)()); + }; + void fn1() { A(a, &State::m_fn1); } +} |