diff options
Diffstat (limited to 'clang/test/CodeGenCXX')
-rw-r--r-- | clang/test/CodeGenCXX/mangle.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index 775cf00917b..4e6dbf5397a 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -933,3 +933,12 @@ namespace test42 { void g() { func(foo<20, X>()); } } + +namespace test43 { + // CHECK-LABEL: define void @_ZN6test431gEPNS_3zedIXadL_ZNS_3fooUt_3barEEEEE + struct foo { union { int bar; }; }; + template <int (foo::*)> + struct zed {}; + void g(zed<&foo::bar>*) + {} +} |