llvm.org GIT mirror llvm / 9e8d1ac
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8218 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0
1 // RUN: llvmgcc -xc++ -c -o /dev/null %s 2>&1 | not grep WARNING
2
3 struct iterator {
4 iterator();
5 iterator(const iterator &I);
6 };
7
8 iterator foo(const iterator &I) { return I; }
9
10 void test() {
11 foo(iterator());
12 }