[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2005-02-20-BrokenReferenceTest.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 20 20:03:49 PST 2005
Changes in directory llvm/test/Regression/C++Frontend:
2005-02-20-BrokenReferenceTest.cpp added (r1.1)
---
Log message:
new testcase for PR523: http://llvm.cs.uiuc.edu/PR523
---
Diffs of the changes: (+11 -0)
2005-02-20-BrokenReferenceTest.cpp | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/Regression/C++Frontend/2005-02-20-BrokenReferenceTest.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2005-02-20-BrokenReferenceTest.cpp:1.1
*** /dev/null Sun Feb 20 22:03:43 2005
--- llvm/test/Regression/C++Frontend/2005-02-20-BrokenReferenceTest.cpp Sun Feb 20 22:03:32 2005
***************
*** 0 ****
--- 1,11 ----
+ // RUN: %llvmgxx %s -S -o /dev/null
+
+ void test(unsigned char *b, int rb) {
+ typedef unsigned char imgfoo[10][rb];
+ imgfoo &br = *(imgfoo *)b;
+
+ br[0][0] = 1;
+
+ rb = br[0][0];
+ }
+
More information about the llvm-commits
mailing list