mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[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
This commit is contained in:
parent
44c156637e
commit
55f39d51fb
@ -62,16 +62,16 @@ TEST(Automata, TupleAutomatonAccepts) {
|
|||||||
Automaton<TupleAutomatonAction> A(makeArrayRef(TupleAutomatonTransitions));
|
Automaton<TupleAutomatonAction> A(makeArrayRef(TupleAutomatonTransitions));
|
||||||
A.reset();
|
A.reset();
|
||||||
EXPECT_TRUE(
|
EXPECT_TRUE(
|
||||||
A.add({SK_a, SK_b, "yeet"}));
|
A.add(TupleAutomatonAction{SK_a, SK_b, "yeet"}));
|
||||||
A.reset();
|
A.reset();
|
||||||
EXPECT_FALSE(
|
EXPECT_FALSE(
|
||||||
A.add({SK_a, SK_a, "yeet"}));
|
A.add(TupleAutomatonAction{SK_a, SK_a, "yeet"}));
|
||||||
A.reset();
|
A.reset();
|
||||||
EXPECT_FALSE(
|
EXPECT_FALSE(
|
||||||
A.add({SK_a, SK_b, "feet"}));
|
A.add(TupleAutomatonAction{SK_a, SK_b, "feet"}));
|
||||||
A.reset();
|
A.reset();
|
||||||
EXPECT_TRUE(
|
EXPECT_TRUE(
|
||||||
A.add({SK_b, SK_b, "foo"}));
|
A.add(TupleAutomatonAction{SK_b, SK_b, "foo"}));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(Automata, NfaAutomatonAccepts) {
|
TEST(Automata, NfaAutomatonAccepts) {
|
||||||
|
Loading…
Reference in New Issue
Block a user