blob: 613b28c736f0898b9e56e44de53bf9a151ef9a81 [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// RUN: %clang_cc1 -Wno-error=non-pod-varargs -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
Douglas Gregor930a9ab2011-05-21 19:26:31 +00002
3struct X {
4 X();
5 X(const X&);
6 ~X();
7};
8
9void vararg(...);
10
Stephen Lin93ab6bf2013-08-15 06:47:53 +000011// CHECK-LABEL: define void @_Z4test1X
Douglas Gregor930a9ab2011-05-21 19:26:31 +000012void test(X x) {
13 // CHECK: call void @llvm.trap()
14 vararg(x);
15 // CHECK: ret void
16}