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
Fix PR4948 (and a leak): by not destroying the DwarfException
[llvm/avr.git]
/
test
/
FrontendC++
/
2003-11-08-ArrayAddress.cpp
blob
9ad1b8f82f721ab6f10bc4b142cc9284bf8e0207
1
// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep getelementptr
2
3
struct
foo
{
4
int
array
[
100
];
5
void
*
getAddr
(
unsigned
i
);
6
};
7
8
void
*
foo
::
getAddr
(
unsigned
i
) {
9
return
&
array
[
i
];
10
}