New testcase
authorChris Lattner <sabre@nondot.org>
Fri, 29 Aug 2003 16:00:19 +0000 (16:00 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 29 Aug 2003 16:00:19 +0000 (16:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8218 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr [new file with mode: 0644]

diff --git a/test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr b/test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr
new file mode 100644 (file)
index 0000000..2e82b46
--- /dev/null
@@ -0,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());
+}