| // RUN: clang-cc -fsyntax-only %s -Wnon-pod-varargs |
| void test_copycon(X x, X const xc, X volatile xv) { |
| void test_copycon2(A a, const A ac, B b, B const bc, B volatile bv) { |
| float& f1 = copycon2(bc); // expected-warning {{cannot pass object of non-POD type}} |
| float& f2 = copycon2(bv); // expected-warning {{cannot pass object of non-POD type}} |
| float& f3 = copycon2(ac); // expected-warning {{cannot pass object of non-POD type}} |
| void test_copycon3(B b, const B bc) { |
| float& f1 = copycon3(bc); // expected-warning {{cannot pass object of non-POD type}} |
| void test_copycon4(C c) { |