repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
complete-member-pointers.cpp
blob
942bb703a9223651a9be8dcdb474afd148aa84ca
1
// RUN: %clang_cc1 -verify -fsyntax-only -fcomplete-member-pointers %s
2
3
struct
S
;
// expected-note {{forward declaration of 'S'}}
4
typedef
int
S
::*
t
;
5
t foo
;
// expected-error {{member pointer has incomplete base type 'S'}}
6
7
struct
S2
{
8
int
S2
::*
foo
;
9
};
10
int
S2
::*
bar
;
11
12
template
<
typename T
>
13
struct
S3
{
14
int
T
::*
foo
;
15
};