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