summaryrefslogtreecommitdiff
path: root/test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr
blob: beba66e338d6ce32ee8b9d0b13ca0af84f7e008f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

// RUN: %gcc -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());
}