1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00
llvm-mirror/test/C++Frontend/2003-11-08-ArrayAddress.cpp.tr

11 lines
186 B
Plaintext
Raw Normal View History

// RUN: %llvmgxx -xc++ %s -c -o - | llvm-dis | grep getelementptr
2003-11-08 23:00:49 +00:00
struct foo {
int array[100];
void *getAddr(unsigned i);
};
void *foo::getAddr(unsigned i) {
return &array[i];
}