diff options
Diffstat (limited to 'llvm/test/C++Frontend/2003-08-29-ArgPassingBug.cpp')
-rw-r--r-- | llvm/test/C++Frontend/2003-08-29-ArgPassingBug.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2003-08-29-ArgPassingBug.cpp b/llvm/test/C++Frontend/2003-08-29-ArgPassingBug.cpp new file mode 100644 index 00000000000..d4cddff3147 --- /dev/null +++ b/llvm/test/C++Frontend/2003-08-29-ArgPassingBug.cpp @@ -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()); +} |