repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
vararg-non-pod.cpp
blob
36891a4d28c8ba409fd2f6bdc1ebf456f81114d7
1
// RUN: %clang_cc1 -Wno-error=non-pod-varargs -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s
2
3
struct
X
{
4
X
();
5
X
(
const
X
&);
6
~
X
();
7
};
8
9
void
vararg
(...);
10
11
// CHECK-LABEL: define {{.*}}void @_Z4test1X
12
void
test
(
X x
) {
13
// CHECK: call void @llvm.trap()
14
vararg
(
x
);
15
// CHECK: ret void
16
}