diff options
Diffstat (limited to 'clang/test/CodeGenCXX/incomplete-member-function-pointer.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/incomplete-member-function-pointer.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/incomplete-member-function-pointer.cpp b/clang/test/CodeGenCXX/incomplete-member-function-pointer.cpp new file mode 100644 index 0000000..b97e44c --- /dev/null +++ b/clang/test/CodeGenCXX/incomplete-member-function-pointer.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 %s -emit-llvm-only +// PR7040 +struct fake_tuple; +struct connection { + void bar(fake_tuple); +}; +void (connection::*a)(fake_tuple) = &connection::bar; +void f() { + void (connection::*b)(fake_tuple) = &connection::bar; +} |