diff --git a/configure.json b/configure.json index 07514992d1..2dc79137e8 100644 --- a/configure.json +++ b/configure.json @@ -283,7 +283,13 @@ "#else", "# error __cplusplus must be > 201402L (the value for C++14)", "#endif", - "#include // https://bugs.llvm.org//show_bug.cgi?id=33117" + "#include // https://bugs.llvm.org//show_bug.cgi?id=33117", + "#include " + ], + "main": [ + "std::variant v(42);", + "int i = std::get(v);", + "std::visit([](const auto &) { return 1; }, v);" ], "qmake": "CONFIG += c++11 c++14 c++1z" }