brintos

brintos / llvm-project-archived public Read only

0
0
Text · 306 B · 36891a4 Raw
17 lines · cpp
1// RUN: %clang_cc1 -Wno-error=non-pod-varargs -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s2 3struct X {4  X();5  X(const X&);6  ~X();7};8 9void vararg(...);10 11// CHECK-LABEL: define {{.*}}void @_Z4test1X12void test(X x) {13  // CHECK: call void @llvm.trap()14  vararg(x);15  // CHECK: ret void16}17