summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/incomplete-member-function-pointer.cpp
blob: b97e44c9172d832ed295283fb0aeed176d1f4eeb (plain)
1
2
3
4
5
6
7
8
9
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;
}