[llvm-commits] CVS: llvm/test/Regression/C++Frontend/CompileFail/2003-08-29-ArgPassingBug.cpp.tr

Chris Lattner lattner at cs.uiuc.edu
Fri Aug 29 11:01:02 PDT 2003


Changes in directory llvm/test/Regression/C++Frontend/CompileFail:

2003-08-29-ArgPassingBug.cpp.tr added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/C++Frontend/CompileFail/2003-08-29-ArgPassingBug.cpp.tr
diff -c /dev/null llvm/test/Regression/C++Frontend/CompileFail/2003-08-29-ArgPassingBug.cpp.tr:1.1
*** /dev/null	Fri Aug 29 11:00:29 2003
--- llvm/test/Regression/C++Frontend/CompileFail/2003-08-29-ArgPassingBug.cpp.tr	Fri Aug 29 11:00:19 2003
***************
*** 0 ****
--- 1,13 ----
+ 
+ // RUN: llvmgcc -xc++ -c -o /dev/null %s 2>&1 | not grep WARNING
+ 
+ struct iterator {
+   iterator();
+   iterator(const iterator &I);
+ };
+ 
+ iterator foo(const iterator &I) { return I; }
+ 
+ void test() {
+   foo(iterator());
+ }





More information about the llvm-commits mailing list