diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-24 18:29:37 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-24 18:29:37 +0000 |
| commit | 835026e9f18d5b1462d411e37a228e2471a4bfd6 (patch) | |
| tree | d969b27150f955d74716ea1f652a9961575e264e /clang/test/CodeGenCXX/new.cpp | |
| parent | 0b11a3ef71a966963d04da3fcbf15e35f00dab99 (diff) | |
| download | bcm5719-llvm-835026e9f18d5b1462d411e37a228e2471a4bfd6.tar.gz bcm5719-llvm-835026e9f18d5b1462d411e37a228e2471a4bfd6.zip | |
Refactor collection of call arguments in common code.
Add support for variadic collection functions. More to do
here.
llvm-svn: 89781
Diffstat (limited to 'clang/test/CodeGenCXX/new.cpp')
| -rw-r--r-- | clang/test/CodeGenCXX/new.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/new.cpp b/clang/test/CodeGenCXX/new.cpp index ddf1f9b3c90..f2121a6079b 100644 --- a/clang/test/CodeGenCXX/new.cpp +++ b/clang/test/CodeGenCXX/new.cpp @@ -79,3 +79,14 @@ void t9() { new bool(true); new (&b) bool(true); } + +struct A { + void* operator new(__typeof(sizeof(int)), int, float, ...); + A(); +}; + +A* t10() { + // CHECK: @_ZN1AnwEmifz + return new(1, 2, 3.45, 100) A; +} + |

