repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' into msp430
[llvm/msp430.git]
/
test
/
FrontendC
/
2007-05-29-UnionCopy.c
blob
ded67d4d6b283faa24df5737c043576f4fc4fed0
1
// RUN: %llvmgcc -S -o - -emit-llvm %s | grep memcpy
2
// PR1421
3
4
struct
A
{
5
char
c
;
6
int
i
;
7
};
8
9
struct
B
{
10
int
c
;
11
unsigned char
x
;
12
};
13
14
union
U
{
struct
A a
;
struct
B b
; };
15
16
void
check
(
union
U
*
u
,
union
U
*
v
) {
17
*
u
= *
v
;
18
}