resurrect lost tests by renaming them to not end with .tr
[oota-llvm.git] / test / C++Frontend / 2003-08-29-ArgPassingBug.cpp
diff --git a/test/C++Frontend/2003-08-29-ArgPassingBug.cpp b/test/C++Frontend/2003-08-29-ArgPassingBug.cpp
new file mode 100644 (file)
index 0000000..d4cddff
--- /dev/null
@@ -0,0 +1,13 @@
+
+// RUN: %llvmgcc -xc++ -c -o /dev/null %s |& not grep WARNING
+
+struct iterator {
+  iterator();
+  iterator(const iterator &I);
+};
+
+iterator foo(const iterator &I) { return I; }
+
+void test() {
+  foo(iterator());
+}