blob: 6c6f459ce5059b2d255e27b243919705ef4bc885 [file] [log] [blame]
Douglas Gregor930a9ab2011-05-21 19:26:31 +00001// RUN: %clang_cc1 -Wno-error=non-pod-varargs -emit-llvm -o - %s | FileCheck %s
2
3struct X {
4 X();
5 X(const X&);
6 ~X();
7};
8
9void vararg(...);
10
11// CHECK: define void @_Z4test1X
12void test(X x) {
13 // CHECK: call void @llvm.trap()
14 vararg(x);
15 // CHECK: ret void
16}