mirror of
https://github.com/opnsense/src.git
synced 2026-02-22 09:21:31 -05:00
13 lines
237 B
C++
13 lines
237 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
|
|
|
|
struct S {
|
|
int i;
|
|
|
|
int mem(int);
|
|
};
|
|
|
|
int foo(int S::* ps, S *s)
|
|
{
|
|
return (s->*ps)(1); // expected-error {{called object type 'int' is not a function or function pointer}}
|
|
}
|
|
|