Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
3393f8157a11627fd52889fbc3fd279f6704d5d4
/
.
/
test
/
SemaCXX
/
ptrtomember-badcall.cpp
blob: 42b8e3b6e0c93be0b9beed403c7ac15bf8b7573e [
file
] [
log
] [
blame
]
// RUN: clang-cc -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}}
}