[clang][Interp] Disable some RVO tests
authorTimm Bäder <tbaeder@redhat.com>
Fri, 14 Oct 2022 08:44:39 +0000 (10:44 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 14 Oct 2022 08:45:23 +0000 (10:45 +0200)
Apparently this breaks a couple of builders:
https://lab.llvm.org/buildbot/#/builders/139/builds/29552
https://lab.llvm.org/buildbot/#/builders/216/builds/11240

clang/test/AST/Interp/records.cpp

index 1e61d48..ae0287b 100644 (file)
@@ -48,6 +48,7 @@ static_assert(ints2.a == -20, "");
 static_assert(ints2.b == -30, "");
 static_assert(!ints2.c, "");
 
+#if 0
 constexpr Ints getInts() {
   return {64, 128, true};
 }
@@ -55,6 +56,7 @@ constexpr Ints ints3 = getInts();
 static_assert(ints3.a == 64, "");
 static_assert(ints3.b == 128, "");
 static_assert(ints3.c, "");
+#endif
 
 constexpr Ints ints4 = {
   .a = 40 * 50,
@@ -118,10 +120,12 @@ constexpr const C* getPointer() {
 }
 static_assert(getPointer()->a == 100, "");
 
+#if 0
 constexpr C RVOAndParams(const C *c) {
   return C();
 }
 constexpr C RVOAndParamsResult = RVOAndParams(&c);
+#endif
 
 constexpr int locals() {
   C c;