[clang][bytecode][NFC] Add a c++11 test case (#152104)

This test case breaks when ignoring trivial CXXConstructExprs of array
types, so make sure we don't do that.
This commit is contained in:
Timm Baeder 2025-08-05 11:28:05 +02:00 committed by GitHub
parent e0df5f8c1a
commit b557cd3e8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,3 +309,12 @@ int somefunc() {
// both-note {{reference to 'non_global' is not a constant expression}} // both-note {{reference to 'non_global' is not a constant expression}}
} }
namespace PR19010 {
struct Empty {};
struct Empty2 : Empty {};
struct Test : Empty2 {
constexpr Test() {}
Empty2 array[2];
};
void test() { constexpr Test t; }
}