1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -Wno-error=non-pod-varargs -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s 2f4a2713aSLionel Sambuc 3f4a2713aSLionel Sambuc struct X { 4f4a2713aSLionel Sambuc X(); 5f4a2713aSLionel Sambuc X(const X&); 6f4a2713aSLionel Sambuc ~X(); 7f4a2713aSLionel Sambuc }; 8f4a2713aSLionel Sambuc 9f4a2713aSLionel Sambuc void vararg(...); 10f4a2713aSLionel Sambuc 11f4a2713aSLionel Sambuc // CHECK-LABEL: define void @_Z4test1X test(X x)12f4a2713aSLionel Sambucvoid test(X x) { 13f4a2713aSLionel Sambuc // CHECK: call void @llvm.trap() 14f4a2713aSLionel Sambuc vararg(x); 15f4a2713aSLionel Sambuc // CHECK: ret void 16f4a2713aSLionel Sambuc } 17