[llvm-commits] CVS: llvm/test/Regression/DebugInfo/2007-01-02-UnboundedArray.cpp

Jim Laskey jlaskey at apple.com
Tue Jan 2 03:54:08 PST 2007



Changes in directory llvm/test/Regression/DebugInfo:

2007-01-02-UnboundedArray.cpp added (r1.1)
---
Log message:

PR1068: http://llvm.org/PR1068  - Unbounded array debug info.

---
Diffs of the changes:  (+14 -0)

 2007-01-02-UnboundedArray.cpp |   14 ++++++++++++++
 1 files changed, 14 insertions(+)


Index: llvm/test/Regression/DebugInfo/2007-01-02-UnboundedArray.cpp
diff -c /dev/null llvm/test/Regression/DebugInfo/2007-01-02-UnboundedArray.cpp:1.1
*** /dev/null	Tue Jan  2 05:54:02 2007
--- llvm/test/Regression/DebugInfo/2007-01-02-UnboundedArray.cpp	Tue Jan  2 05:53:52 2007
***************
*** 0 ****
--- 1,14 ----
+ // Make sure unbounded arrays compile with debug information.
+ // 
+ // RUN: %llvmgcc -O0 -c -g %s
+ 
+ // PR1068
+ 
+ struct Object {
+   char buffer[];
+ };
+ 
+ int main(int argc, char** argv) {
+   new Object;
+   return 0;
+ }






More information about the llvm-commits mailing list