xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/vararg-conversion-ctor.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin -std=c++11 -emit-llvm %s -o %t-64.ll
2*f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix CHECK-LPLL64 --input-file=%t-64.ll %s
3*f4a2713aSLionel Sambuc 
4*f4a2713aSLionel Sambuc extern "C" int printf(...);
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc struct A {
AA7*f4a2713aSLionel Sambuc   A(...) {
8*f4a2713aSLionel Sambuc     printf("A::A(...)\n");
9*f4a2713aSLionel Sambuc   }
10*f4a2713aSLionel Sambuc };
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc A a(1.34);
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc A b = 2.34;
15*f4a2713aSLionel Sambuc 
main()16*f4a2713aSLionel Sambuc int main()
17*f4a2713aSLionel Sambuc {
18*f4a2713aSLionel Sambuc   A c[3];
19*f4a2713aSLionel Sambuc }
20*f4a2713aSLionel Sambuc 
21*f4a2713aSLionel Sambuc // CHECK-LPLL64: call void (%struct.A*, ...)
22*f4a2713aSLionel Sambuc // CHECK-LPLL64: call void (%struct.A*, ...)
23*f4a2713aSLionel Sambuc // CHECK-LPLL64: call void (%struct.A*, ...)
24