[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2003-11-08-ArrayAddress.cpp.tr
Chris Lattner
lattner at cs.uiuc.edu
Sat Nov 8 17:02:01 PST 2003
Changes in directory llvm/test/Regression/C++Frontend:
2003-11-08-ArrayAddress.cpp.tr added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+10 -0)
Index: llvm/test/Regression/C++Frontend/2003-11-08-ArrayAddress.cpp.tr
diff -c /dev/null llvm/test/Regression/C++Frontend/2003-11-08-ArrayAddress.cpp.tr:1.1
*** /dev/null Sat Nov 8 17:00:59 2003
--- llvm/test/Regression/C++Frontend/2003-11-08-ArrayAddress.cpp.tr Sat Nov 8 17:00:49 2003
***************
*** 0 ****
--- 1,10 ----
+ // RUN: %llvmg++ -xc++ %s -c -o - | llvm-dis | grep getelementptr
+
+ struct foo {
+ int array[100];
+ void *getAddr(unsigned i);
+ };
+
+ void *foo::getAddr(unsigned i) {
+ return &array[i];
+ }
More information about the llvm-commits
mailing list