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] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Sema
/
member-reference.c
blob
4004673dfdac4bc3cad5685c5037e32c03310c3e
1
// RUN: %clang_cc1 %s -verify -fsyntax-only
2
3
struct
simple
{
int
i
; };
4
5
void
f
(
void
) {
6
struct
simple s
[
1
];
7
s
->
i
=
1
;
8
}
9
10
typedef
int
x
;
11
struct
S
{
12
int
x
;
13
x z
;
14
};
15
16
void
g
(
void
) {
17
struct
S s
[
1
];
18
s
->
x
=
1
;
19
s
->
z
=
2
;
20
}
21
22
int
PR17762
(
struct
simple c
) {
23
return
c
->
i
;
// expected-error {{member reference type 'struct simple' is not a pointer; did you mean to use '.'?}}
24
}