diff options
Diffstat (limited to 'libcxx/test/numerics/rand/rand.device/eval.pass.cpp')
-rw-r--r-- | libcxx/test/numerics/rand/rand.device/eval.pass.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libcxx/test/numerics/rand/rand.device/eval.pass.cpp b/libcxx/test/numerics/rand/rand.device/eval.pass.cpp new file mode 100644 index 00000000000..40d0735a147 --- /dev/null +++ b/libcxx/test/numerics/rand/rand.device/eval.pass.cpp @@ -0,0 +1,23 @@ +//===----------------------------------------------------------------------===// +// +// ΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚΚThe LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <random> + +// class random_device; + +// result_type operator()(); + +#include <random> +#include <cassert> + +int main() +{ + std::random_device r; + std::random_device::result_type e = r(); +} |