projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upstream version 8.36.169.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
libc++
/
trunk
/
test
/
algorithms
/
alg.sorting
/
alg.min.max
/
max.pass.cpp
diff --git
a/src/third_party/libc++/trunk/test/algorithms/alg.sorting/alg.min.max/max.pass.cpp
b/src/third_party/libc++/trunk/test/algorithms/alg.sorting/alg.min.max/max.pass.cpp
index
ebb42a9
..
c560c22
100644
(file)
--- a/
src/third_party/libc++/trunk/test/algorithms/alg.sorting/alg.min.max/max.pass.cpp
+++ b/
src/third_party/libc++/trunk/test/algorithms/alg.sorting/alg.min.max/max.pass.cpp
@@
-43,4
+43,12
@@
int main()
test(x, y, x);
test(y, x, x);
}
+#if _LIBCPP_STD_VER > 11
+ {
+ constexpr int x = 1;
+ constexpr int y = 0;
+ static_assert(std::max(x, y) == x, "" );
+ static_assert(std::max(y, x) == x, "" );
+ }
+#endif
}