diff options
Diffstat (limited to 'tests/cxx/ctad-i1.h')
-rw-r--r-- | tests/cxx/ctad-i1.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/cxx/ctad-i1.h b/tests/cxx/ctad-i1.h new file mode 100644 index 0000000..defd3f0 --- /dev/null +++ b/tests/cxx/ctad-i1.h @@ -0,0 +1,20 @@ +//===--- ctad-i1.h - test input file for iwyu -----------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +template <class Func> +struct Deduced { + Deduced(Func&& deferred) : deferred(deferred) { + } + + ~Deduced() { + deferred(); + } + + Func deferred; +}; |