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
/
CodeGenCXX
/
member-init-struct.cpp
blob
d509b0ebac2898e300b6bd58dec16119038d16e2
1
// RUN: %clang_cc1 %s -emit-llvm-only -verify
2
// expected-no-diagnostics
3
4
struct
A
{
int
a
;};
5
struct
B
{
float
a
;};
6
struct
C
{
7
union
{
8
A a
;
9
B b
[
10
];
10
};
11
_Complex
float
c
;
12
int
d
[
10
];
13
void
(
C
::*
e
)();
14
C
() :
a
(),
c
(),
d
(),
e
() {}
15
C
(
A x
) :
a
(
x
) {}
16
C
(
void
(
C
::*
x
)(),
int
y
) :
b
(),
c
(
y
),
e
(
x
) {}
17
};
18
A x
;
19
C a
,
b
(
x
),
c
(
0
,
2
);