mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 16:02:52 +01:00
eb3cd5e822
llvm-svn: 51695
12 lines
255 B
C
12 lines
255 B
C
// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep getelementptr
|
|
|
|
// This should be turned into a tasty getelementptr instruction, not a nasty
|
|
// series of casts and address arithmetic.
|
|
|
|
char Global[100];
|
|
|
|
char *test1(unsigned i) {
|
|
return &Global[i];
|
|
}
|
|
|