[clang] a884364 - [clang][Interp] Remove struct from a testcase

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 00:44:26 PDT 2022


Author: Timm Bäder
Date: 2022-09-14T09:44:01+02:00
New Revision: a8843643cd75d0e93ebcf3f30b470d2b8e59868d

URL: https://github.com/llvm/llvm-project/commit/a8843643cd75d0e93ebcf3f30b470d2b8e59868d
DIFF: https://github.com/llvm/llvm-project/commit/a8843643cd75d0e93ebcf3f30b470d2b8e59868d.diff

LOG: [clang][Interp] Remove struct from a testcase

This should fix the leak sanitizer breakage introduced by
https://reviews.llvm.org/D132997, e.g.
https://lab.llvm.org/buildbot/#/builders/5/builds/27410

Added: 
    

Modified: 
    clang/test/AST/Interp/references.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/AST/Interp/references.cpp b/clang/test/AST/Interp/references.cpp
index 61d4d91e42245..2b5187ca29dd9 100644
--- a/clang/test/AST/Interp/references.cpp
+++ b/clang/test/AST/Interp/references.cpp
@@ -75,6 +75,7 @@ static_assert(testGetValue() == 30, "");
 constexpr const int &MCE = 1; // expected-error{{must be initialized by a constant expression}}
 
 
+#if 0
 struct S {
   int i, j;
 };
@@ -88,4 +89,5 @@ constexpr int RefToMemberExpr() {
   return j;
 }
 // FIXME: Should be accepted.
-static_assert(RefToMemberExpr() == 11, ""); // expected-error{{not an integral constant expression}}
+static_assert(RefToMemberExpr() == 11, "");
+#endif


        


More information about the cfe-commits mailing list