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
/
CodeGen
/
2002-03-12-StructInitializer.c
blob
a65675b137865a75a004c3b7606cc0ba95893ed1
1
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
/* GCC was not emitting string constants of the correct length when
4
* embedded into a structure field like this. It thought the strlength
5
* was -1.
6
*/
7
8
typedef
struct
Connection_Type
{
9
long
to
;
10
char
type
[
10
];
11
long
length
;
12
}
Connection
;
13
14
Connection link
[
3
]
15
= { {
1
,
"link1"
,
10
},
16
{
2
,
"link2"
,
20
},
17
{
3
,
"link3"
,
30
} };
18