repo.or.cz
/
clang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Do not warn with -Wuninitialized when the member is used in a sizeof or address-of...
[clang.git]
/
test
/
Parser
/
types.c
blob
53b9dd5e9eca1b59cd94d7beb4585b60284e3b7a
1
// RUN: %clang_cc1 %s -fsyntax-only -verify
2
3
// Test the X can be overloaded inside the struct.
4
typedef
int
X
;
5
struct
Y
{
short
X
; };
6
7
// Variable shadows type, PR3872
8
9
typedef
struct
foo
{
int
x
; }
foo
;
10
void
test
() {
11
foo
*
foo
;
12
foo
->
x
=
0
;
13
}
14