repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
FrontendC
/
2007-09-05-ConstCtor.c
blob
8e0e9945ffaa97fdeec2b094c0e083b5eb8022fa
1
// RUN: %llvmgcc -xc -Os -c %s -o /dev/null
2
// PR1641
3
4
struct
A
{
5
unsigned long
l
;
6
};
7
8
void
bar
(
struct
A
*
a
);
9
10
void
bork
() {
11
const unsigned long
vcgt
=
1234
;
12
struct
A a
= {
vcgt
};
13
bar
(&
a
);
14
}