[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:
parent
e0df5f8c1a
commit
b557cd3e8f
@ -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; }
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user