default.pass.cpp 523 B

1234567891011121314151617181920212223
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. // <functional>
  10. // class function<R(ArgTypes...)>
  11. // explicit function();
  12. #include <functional>
  13. #include <cassert>
  14. int main()
  15. {
  16. std::function<int(int)> f;
  17. assert(!f);
  18. }