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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
Parser
/
types.c
blob
58ace6d1661064cdae95d996a44bcd8a473f72a5
1
// RUN: %clang_cc1 %s -fsyntax-only -verify
2
// expected-no-diagnostics
3
4
// Test the X can be overloaded inside the struct.
5
typedef
int
X
;
6
struct
Y
{
short
X
; };
7
8
// Variable shadows type, PR3872
9
10
typedef
struct
foo
{
int
x
; }
foo
;
11
void
test
(
void
) {
12
foo
*
foo
;
13
foo
->
x
=
0
;
14
}
15