Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git] / test / FrontendC++ / 2003-08-29-ArgPassingBug.cpp
blobd4cddff3147cc2147c19dd6d91d3db7c5950e816
2 // RUN: %llvmgcc -xc++ -c -o /dev/null %s |& not grep WARNING
4 struct iterator {
5 iterator();
6 iterator(const iterator &I);
7 };
9 iterator foo(const iterator &I) { return I; }
11 void test() {
12 foo(iterator());