summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorJames Molloy <jmolloy@google.com>2019-10-05 08:57:17 +0000
committerJames Molloy <jmolloy@google.com>2019-10-05 08:57:17 +0000
commitb1f0183e572b32c0118c2e23910bf0c3dc37baad (patch)
tree9191f871fe09e29251bccbae488515700e0322a0 /llvm/unittests
parent68f58a75a76b17affeff90e4e250a1e790fda0ac (diff)
downloadbcm5719-llvm-b1f0183e572b32c0118c2e23910bf0c3dc37baad.tar.gz
bcm5719-llvm-b1f0183e572b32c0118c2e23910bf0c3dc37baad.zip
[UnitTests] Try and pacify gcc-5
This looks like a defect in gcc-5 where it chooses a constexpr constructor from the initializer-list that it considers to be explicit. I've tried to reproduce but I can't install anything prior to gcc-6 easily on my system, and that doesn't have the error. So this is speculative pacification. Reported by Steven Wan. llvm-svn: 373820
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/TableGen/AutomataTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/TableGen/AutomataTest.cpp b/llvm/unittests/TableGen/AutomataTest.cpp
index 11c03426fd8..fb19716c484 100644
--- a/llvm/unittests/TableGen/AutomataTest.cpp
+++ b/llvm/unittests/TableGen/AutomataTest.cpp
@@ -62,16 +62,16 @@ TEST(Automata, TupleAutomatonAccepts) {
Automaton<TupleAutomatonAction> A(makeArrayRef(TupleAutomatonTransitions));
A.reset();
EXPECT_TRUE(
- A.add({SK_a, SK_b, "yeet"}));
+ A.add(TupleAutomatonAction{SK_a, SK_b, "yeet"}));
A.reset();
EXPECT_FALSE(
- A.add({SK_a, SK_a, "yeet"}));
+ A.add(TupleAutomatonAction{SK_a, SK_a, "yeet"}));
A.reset();
EXPECT_FALSE(
- A.add({SK_a, SK_b, "feet"}));
+ A.add(TupleAutomatonAction{SK_a, SK_b, "feet"}));
A.reset();
EXPECT_TRUE(
- A.add({SK_b, SK_b, "foo"}));
+ A.add(TupleAutomatonAction{SK_b, SK_b, "foo"}));
}
TEST(Automata, NfaAutomatonAccepts) {
OpenPOWER on IntegriCloud