diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-06 18:47:57 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-06 18:47:57 +0000 |
commit | 30509a30a9a6ac9ee737e5cf39744a92170d7ea4 (patch) | |
tree | f9fae3447151b54f1321253f73434309b90ed690 /test/CodeGenCXX/vararg-conversion-ctor.cpp | |
parent | ba397fe24468fae6cb46f259a3f946770163bfe2 (diff) |
This patch fixes code gen. part of pr5333 (Conversion
using elipsis conversion).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/vararg-conversion-ctor.cpp')
-rw-r--r-- | test/CodeGenCXX/vararg-conversion-ctor.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGenCXX/vararg-conversion-ctor.cpp b/test/CodeGenCXX/vararg-conversion-ctor.cpp new file mode 100644 index 0000000000..d6110b7660 --- /dev/null +++ b/test/CodeGenCXX/vararg-conversion-ctor.cpp @@ -0,0 +1,24 @@ +// RUN: clang-cc -triple x86_64-apple-darwin -std=c++0x -emit-llvm %s -o %t-64.ll && +// RUN: FileCheck -check-prefix LPLL64 --input-file=%t-64.ll %s && +// RUN: true + +extern "C" int printf(...); + +struct A { + A(...) { + printf("A::A(...)\n"); + } +}; + +A a(1.34); + +A b = 2.34; + +int main() +{ + A c[3]; +} + +// CHECK-LPLL64: call void (%struct.A*, ...) +// CHECK-LPLL64: call void (%struct.A*, ...) +// CHECK-LPLL64: call void (%struct.A*, ...) |