1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5  * You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #include "mozilla/TemplateLib.h"
8 
9 using mozilla::tl::And;
10 
11 static_assert(And<>::value == true,
12               "And<>::value should be true");
13 static_assert(And<true>::value == true,
14               "And<true>::value should be true");
15 static_assert(And<false>::value == false,
16               "And<false>::value should be false");
17 static_assert(And<false, true>::value == false,
18               "And<false, true>::value should be false");
19 static_assert(And<false, false>::value == false,
20               "And<false, false>::value should be false");
21 static_assert(And<true, false>::value == false,
22               "And<true, false>::value should be false");
23 static_assert(And<true, true>::value == true,
24               "And<true, true>::value should be true");
25 static_assert(And<true, true, true>::value == true,
26               "And<true, true, true>::value should be true");
27 static_assert(And<true, false, true>::value == false,
28               "And<true, false, true>::value should be false");
29 
30 int
main()31 main()
32 {
33   // Nothing to do here.
34   return 0;
35 }
36