Fix part 1 of pr4682. PICADD is a 16-bit instruction even in thumb2 mode.
[llvm/avr.git] / test / FrontendC++ / 2003-09-29-ArgumentNumberMismatch.cpp
blob4873123d124176eba3373123cfa9bfc32bf3582d
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
3 // Non-POD classes cannot be passed into a function by component, because their
4 // dtors must be run. Instead, pass them in by reference. The C++ front-end
5 // was mistakenly "thinking" that 'foo' took a structure by component.
7 struct C {
8 int A, B;
9 ~C() {}
12 void foo(C b);
14 void test(C *P) {
15 foo(*P);