|
11 | 11 |
|
12 | 12 | namespace {
|
13 | 13 |
|
14 |
| -TEST(STLForwardCompatTest, NegationTest) { |
15 |
| - EXPECT_TRUE((llvm::negation<std::false_type>::value)); |
16 |
| - EXPECT_FALSE((llvm::negation<std::true_type>::value)); |
17 |
| -} |
18 |
| - |
19 |
| -struct incomplete_type; |
20 |
| - |
21 |
| -TEST(STLForwardCompatTest, ConjunctionTest) { |
22 |
| - EXPECT_TRUE((llvm::conjunction<>::value)); |
23 |
| - EXPECT_FALSE((llvm::conjunction<std::false_type>::value)); |
24 |
| - EXPECT_TRUE((llvm::conjunction<std::true_type>::value)); |
25 |
| - EXPECT_FALSE((llvm::conjunction<std::false_type, incomplete_type>::value)); |
26 |
| - EXPECT_FALSE((llvm::conjunction<std::false_type, std::true_type>::value)); |
27 |
| - EXPECT_FALSE((llvm::conjunction<std::true_type, std::false_type>::value)); |
28 |
| - EXPECT_TRUE((llvm::conjunction<std::true_type, std::true_type>::value)); |
29 |
| - EXPECT_TRUE((llvm::conjunction<std::true_type, std::true_type, |
30 |
| - std::true_type>::value)); |
31 |
| -} |
32 |
| - |
33 |
| -TEST(STLForwardCompatTest, DisjunctionTest) { |
34 |
| - EXPECT_FALSE((llvm::disjunction<>::value)); |
35 |
| - EXPECT_FALSE((llvm::disjunction<std::false_type>::value)); |
36 |
| - EXPECT_TRUE((llvm::disjunction<std::true_type>::value)); |
37 |
| - EXPECT_TRUE((llvm::disjunction<std::true_type, incomplete_type>::value)); |
38 |
| - EXPECT_TRUE((llvm::disjunction<std::false_type, std::true_type>::value)); |
39 |
| - EXPECT_TRUE((llvm::disjunction<std::true_type, std::false_type>::value)); |
40 |
| - EXPECT_TRUE((llvm::disjunction<std::true_type, std::true_type>::value)); |
41 |
| - EXPECT_TRUE((llvm::disjunction<std::true_type, std::true_type, |
42 |
| - std::true_type>::value)); |
43 |
| -} |
44 |
| - |
45 | 14 | template <typename T>
|
46 | 15 | class STLForwardCompatRemoveCVRefTest : public ::testing::Test {};
|
47 | 16 |
|
|
0 commit comments