diff options
author | Timm Bäder <tbaeder@redhat.com> | 2024-07-04 08:49:50 +0200 |
---|---|---|
committer | Timm Bäder <tbaeder@redhat.com> | 2024-07-04 08:50:14 +0200 |
commit | 2dda8a2650927e4b0fbb459507684455e196d9a9 (patch) | |
tree | d25726959fec67717233272bbcedcd6fc494f730 /clang/test | |
parent | 0ad6ac8c5338e42192bc006576397a02b838d265 (diff) | |
download | llvm-2dda8a2650927e4b0fbb459507684455e196d9a9.zip llvm-2dda8a2650927e4b0fbb459507684455e196d9a9.tar.gz llvm-2dda8a2650927e4b0fbb459507684455e196d9a9.tar.bz2 |
Revert "[clang][Interp] Fix init chain in local initializers"
This reverts commit 86187ed2998e43be62176c2c4a7b204cc52f6ce6.
Seems like this breaks buildbots:
https://lab.llvm.org/buildbot/#/builders/56/builds/1638
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/AST/Interp/records.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/test/AST/Interp/records.cpp b/clang/test/AST/Interp/records.cpp index 1554e54..9f341f5 100644 --- a/clang/test/AST/Interp/records.cpp +++ b/clang/test/AST/Interp/records.cpp @@ -1482,15 +1482,3 @@ namespace FloatAPValue { ClassTemplateArgRefTemplate<ClassTemplateArgObj.Arg> ClassTemplateArgRefObj; } #endif - -namespace LocalWithThisPtrInit { - struct S { - int i; - int *p = &i; - }; - constexpr int foo() { - S s{2}; - return *s.p; - } - static_assert(foo() == 2, ""); -} |