Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 1 | // RUN: %clang_cc1 -Wno-error=non-pod-varargs -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s |
Douglas Gregor | 930a9ab | 2011-05-21 19:26:31 +0000 | [diff] [blame] | 2 | |
| 3 | struct X { |
| 4 | X(); |
| 5 | X(const X&); |
| 6 | ~X(); |
| 7 | }; |
| 8 | |
| 9 | void vararg(...); |
| 10 | |
Stephen Lin | 93ab6bf | 2013-08-15 06:47:53 +0000 | [diff] [blame] | 11 | // CHECK-LABEL: define void @_Z4test1X |
Douglas Gregor | 930a9ab | 2011-05-21 19:26:31 +0000 | [diff] [blame] | 12 | void test(X x) { |
| 13 | // CHECK: call void @llvm.trap() |
| 14 | vararg(x); |
| 15 | // CHECK: ret void |
| 16 | } |